summaryrefslogtreecommitdiffstats
path: root/mkinitcpio.8.txt
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-09-04 16:07:40 +0200
committerDave Reisner <dreisner@archlinux.org>2012-09-17 16:31:06 +0200
commit49cfeccb335583ca1dd9e519b9504ca52b9a74ca (patch)
tree6814173cc7baa7df5bb4ced9a1c1fb0b3445700b /mkinitcpio.8.txt
parent8eea59aae56cf5e153560e7e776070906c6af2bc (diff)
downloadmkinitcpio-49cfeccb335583ca1dd9e519b9504ca52b9a74ca.tar.gz
mkinitcpio-49cfeccb335583ca1dd9e519b9504ca52b9a74ca.tar.xz
functions: allow add_symlink to only take a single arg
In the case of a single arg, use readlink(1) to resolve the target of the symlink. Document this, and additionally note the lack of guarantee about the target of the symlink. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'mkinitcpio.8.txt')
-rw-r--r--mkinitcpio.8.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/mkinitcpio.8.txt b/mkinitcpio.8.txt
index a33869d..efa385f 100644
--- a/mkinitcpio.8.txt
+++ b/mkinitcpio.8.txt
@@ -131,10 +131,13 @@ functions exist to facilitate this.
calling *add_file*, *add_dir*, and *add_symlink* accordingly. This function
will not follow symlinks, nor will it add the targets of symlinks.
-*add_symlink* 'path' 'link-target'::
+*add_symlink* 'path' [ 'link-target' ]::
- Adds a symlink to the image at the specified `path`, pointing to the specified
- `link-target`.
+ Adds a symlink to the image at the specified `path`, optionally pointing to
+ the specified `link-target`. If the `link-target` is not provided, it is assumed
+ that this symlink exists in the real filesystem, and the target will be read
+ using readlink. There is no checking done to ensure that the target of the
+ symlink exists, and symlinks will not be followed recursively.
*add_all_modules* [ '-f filter' ] *pattern*::