|
|
|
@ -67,8 +67,9 @@ Creates initial ramdisk images for preloading modules
@@ -67,8 +67,9 @@ Creates initial ramdisk images for preloading modules
|
|
|
|
|
directory instead of the system-wide installed in |
|
|
|
|
/usr/share/dracut/modules.d. |
|
|
|
|
Useful when running dracut from a git checkout. |
|
|
|
|
-H, --hostonly Host-Only mode: Install only what is needed for |
|
|
|
|
-H, --hostonly Host-Only mode: Install only what is needed for |
|
|
|
|
booting the local host instead of a generic host. |
|
|
|
|
--fstab Use /etc/fstab to determine the root device. |
|
|
|
|
-i, --include [SOURCE] [TARGET] |
|
|
|
|
Include the files in the SOURCE directory into the |
|
|
|
|
Target directory in the final initramfs. |
|
|
|
@ -107,6 +108,7 @@ while (($# > 0)); do
@@ -107,6 +108,7 @@ while (($# > 0)); do
|
|
|
|
|
--confdir) confdir="$2"; shift;; |
|
|
|
|
-l|--local) allowlocal="yes" ;; |
|
|
|
|
-H|--hostonly) hostonly_l="yes" ;; |
|
|
|
|
--fstab) use_fstab_l="yes" ;; |
|
|
|
|
-i|--include) include_src="$2"; include_target="$3"; shift 2;; |
|
|
|
|
-I|--install) install_items="$2"; shift;; |
|
|
|
|
-*) printf "\nUnknown option: %s\n\n" "$1" >&2; usage; exit 1;; |
|
|
|
@ -161,6 +163,7 @@ fi
@@ -161,6 +163,7 @@ fi
|
|
|
|
|
[[ $fw_dir_l ]] && fw_dir=$fw_dir_l |
|
|
|
|
[[ $do_strip_l ]] && do_strip=$do_strip_l |
|
|
|
|
[[ $hostonly_l ]] && hostonly=$hostonly_l |
|
|
|
|
[[ $use_fstab_l ]] && use_fstab=$use_fstab_l |
|
|
|
|
[[ $mdadmconf_l ]] && mdadmconf=$mdadmconf_l |
|
|
|
|
[[ $lvmconf_l ]] && lvmconf=$lvmconf_l |
|
|
|
|
[[ $dracutbasedir ]] || dracutbasedir=/usr/share/dracut |
|
|
|
@ -236,7 +239,8 @@ chmod 755 "$initdir"
@@ -236,7 +239,8 @@ chmod 755 "$initdir"
|
|
|
|
|
|
|
|
|
|
export initdir hookdirs dracutbasedir dracutmodules drivers \ |
|
|
|
|
fw_dir drivers_dir debug beverbose no_kernel kernel_only \ |
|
|
|
|
add_drivers mdadmconf lvmconf filesystems ignore_kmodules |
|
|
|
|
add_drivers mdadmconf lvmconf filesystems ignore_kmodules \ |
|
|
|
|
use_fstab |
|
|
|
|
|
|
|
|
|
if [[ $kernel_only != yes ]]; then |
|
|
|
|
# Create some directory structure first |
|
|
|
|