]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: precreate "${initdir}/etc/cmdline.d"
authorHarald Hoyer <harald@redhat.com>
Tue, 7 Feb 2012 16:24:47 +0000 (17:24 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 7 Feb 2012 17:48:04 +0000 (18:48 +0100)
dracut
modules.d/90crypt/module-setup.sh
modules.d/90dmraid/module-setup.sh
modules.d/90lvm/module-setup.sh
modules.d/90mdraid/module-setup.sh

diff --git a/dracut b/dracut
index 4b1859a4d87e8c70dc0a4e3c2c540222df8b7c36..0ee2d7311c4a3edf558b5ee2fe80e1c344dbcd61 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -651,6 +651,8 @@ else
     done
 fi
 
+mkdir -p "${initdir}/etc/cmdline.d"
+
 mods_to_load=""
 # check all our modules to see if they should be sourced.
 # This builds a list of modules that we will install next.
index 9dc55f544f5fc7151c59dfd40186adf40241a76b..5db25f85bf899daf9b30fc88a0c428a279f46449 100755 (executable)
@@ -24,7 +24,6 @@ check() {
     }
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
-        [[ -d "${initdir}/etc/cmdline.d" ]] || mkdir -p "${initdir}/etc/cmdline.d"
         for_each_host_dev_fs check_crypt
         [ -f "${initdir}/etc/cmdline.d/90crypt.conf" ] || return 1
     }
index 19f2ce6ef0089758f537cd50f1adbd553815dd7c..d7834d1e80c06d9edb4d87322cc4831c685ac515 100755 (executable)
@@ -39,7 +39,6 @@ check() {
     }
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
-        [[ -d "${initdir}/etc/cmdline.d" ]] || mkdir -p "${initdir}/etc/cmdline.d"
         for_each_host_dev_fs check_dmraid
         [ -f "${initdir}/etc/cmdline.d/90dmraid.conf" ] || return 1
     }
index 01bfa8af4211d63e286a66ed3a6254200de5b970..a4721911e4ae9d7caa991d94e77dd438a0aee0e8 100755 (executable)
@@ -19,7 +19,6 @@ check() {
     }
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
-        [[ -d "${initdir}/etc/cmdline.d" ]] || mkdir -p "${initdir}/etc/cmdline.d"
         for_each_host_dev_fs check_lvm
         [ -f "${initdir}/etc/cmdline.d/90lvm.conf" ] || return 1
     }
index 8c3e2bb26c3375de74e41f4874750d53cf1b1fe3..f8a481134accb6bcf156fc79283a211be6074477 100755 (executable)
@@ -39,7 +39,6 @@ check() {
     }
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
-        [[ -d "${initdir}/etc/cmdline.d" ]] || mkdir -p "${initdir}/etc/cmdline.d"
         for_each_host_dev_fs check_mdraid
         [[ -f "${initdir}/etc/cmdline.d/90mdraid.conf" ]] || return 1
     }