summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjandob2015-11-26 11:50:17 +0100
committerjandob2015-11-26 11:50:17 +0100
commit72d6e92ae7c32bbc1a87c8ee3712f678a08b5f57 (patch)
treeebdc6506a4ce24183b0d99b95f33266bbce6fce2
parentfix typo in gitignore; update rebash (diff)
downloadsystemd-init-72d6e92ae7c32bbc1a87c8ee3712f678a08b5f57.tar.gz
systemd-init-72d6e92ae7c32bbc1a87c8ee3712f678a08b5f57.tar.xz
systemd-init-72d6e92ae7c32bbc1a87c8ee3712f678a08b5f57.zip
remove unneeded sourcing of dracut-lib.sh (it's sourced already)
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/cmdline/prepare-kernel-command-line-parameter.sh2
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/pre-mount/fetch-config.sh2
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/pre-udev/load-custom-kernel-modules.sh3
3 files changed, 0 insertions, 7 deletions
diff --git a/builder/dnbd3-rootfs/hooks/cmdline/prepare-kernel-command-line-parameter.sh b/builder/dnbd3-rootfs/hooks/cmdline/prepare-kernel-command-line-parameter.sh
index 7dcc8c83..658fb195 100755
--- a/builder/dnbd3-rootfs/hooks/cmdline/prepare-kernel-command-line-parameter.sh
+++ b/builder/dnbd3-rootfs/hooks/cmdline/prepare-kernel-command-line-parameter.sh
@@ -1,5 +1,3 @@
-command -v warn &> /dev/null || . /lib/dracut-lib.sh
-
# This location will be used to have a writable kernel command line file
# location.
local writeable_proc_cmdline_path='/writable_proc_cmdline/'
diff --git a/builder/dnbd3-rootfs/hooks/pre-mount/fetch-config.sh b/builder/dnbd3-rootfs/hooks/pre-mount/fetch-config.sh
index f0753831..0f4b24f2 100755
--- a/builder/dnbd3-rootfs/hooks/pre-mount/fetch-config.sh
+++ b/builder/dnbd3-rootfs/hooks/pre-mount/fetch-config.sh
@@ -1,5 +1,3 @@
-command -v getarg >/dev/null || . /lib/dracut-lib.sh
-
local configuration_file_name='config'
info 'Getting configuration file.'
local IFS_backup="$IFS"
diff --git a/builder/dnbd3-rootfs/hooks/pre-udev/load-custom-kernel-modules.sh b/builder/dnbd3-rootfs/hooks/pre-udev/load-custom-kernel-modules.sh
index 05d569e3..d9b8df4f 100755
--- a/builder/dnbd3-rootfs/hooks/pre-udev/load-custom-kernel-modules.sh
+++ b/builder/dnbd3-rootfs/hooks/pre-udev/load-custom-kernel-modules.sh
@@ -1,6 +1,3 @@
-# include dracut-lib.sh to use 'warn'
-command -v warn >/dev/null || . /lib/dracut-lib.sh
-
NBD_MOD_PATH="/usr/lib/modules/current/extra/nbd.ko"
DNBD3_MOD_PATH="/usr/lib/modules/current/extra/dnbd3.ko"