inst_sysusers is a public interface to dracut modules, move it
to `dracut-functions.sh`.
Document inst_sysusers in the man page as from now on it is a
public interface.
done
}
+# install sysusers files
+inst_sysusers() {
+ inst_multiple -o "$sysusers/$*" "$sysusers/acct-*-$*"
+
+ if [[ ${hostonly-} ]]; then
+ inst_multiple -H -o "$sysusersconfdir/$*" "$sysusers/acct-*-$*"
+ fi
+}
+
# inst_libdir_dir <dir> [<dir>...]
# Install a <dir> located on a lib directory to the initramfs image
inst_libdir_dir() {
fi
}
-# install sysusers files
-# shellcheck disable=SC2317,SC2329
-inst_sysusers() {
- inst_multiple -o "$sysusers/$*" "$sysusers/acct-*-$*"
-
- if [[ ${hostonly-} ]]; then
- inst_multiple -H -o "$sysusersconfdir/$*" "$sysusers/acct-*-$*"
- fi
-}
-
module_functions=(
check
depends
installs one or more udev rules. Non-existent udev rules are reported, but do
not let dracut fail.
+==== inst_sysusers <sysuserconf>
+
+installs one sysuser config files. Non-existent sysuser config file
+is reported, but does not let dracut fail.
+
==== inst_libdir_dir <dir> [<dir>...]
installs multiple directories (but not their content) located on a library