Blame 0016-splitup-dracut-init.sh-from-dracut-functions.sh.patch

Harald Hoyer 0840a3
From 777f2db0373ccbc1a44fc2d960ecefbe50195055 Mon Sep 17 00:00:00 2001
Harald Hoyer 0840a3
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 0840a3
Date: Thu, 2 Jul 2015 15:40:13 +0200
Harald Hoyer 0840a3
Subject: [PATCH] splitup dracut-init.sh from dracut-functions.sh
Harald Hoyer 0840a3
Harald Hoyer 0840a3
other tools want to source dracut-functions.sh without any mkdir side
Harald Hoyer 0840a3
effects.
Harald Hoyer 0840a3
---
Harald Hoyer 0840a3
 Makefile                          |  1 +
Harald Hoyer 0840a3
 dracut-functions.sh               |  9 ++-------
Harald Hoyer 0840a3
 dracut-init.sh                    | 34 ++++++++++++++++++++++++++++++++++
Harald Hoyer 0840a3
 dracut.sh                         |  8 ++++----
Harald Hoyer 0840a3
 test/TEST-01-BASIC/test.sh        |  6 +++---
Harald Hoyer 0840a3
 test/TEST-02-SYSTEMD/test.sh      |  6 +++---
Harald Hoyer 0840a3
 test/TEST-03-USR-MOUNT/test.sh    |  6 +++---
Harald Hoyer 0840a3
 test/TEST-04-FULL-SYSTEMD/test.sh |  6 +++---
Harald Hoyer 0840a3
 test/TEST-10-RAID/test.sh         |  6 +++---
Harald Hoyer 0840a3
 test/TEST-11-LVM/test.sh          |  6 +++---
Harald Hoyer 0840a3
 test/TEST-12-RAID-DEG/test.sh     |  6 +++---
Harald Hoyer 0840a3
 test/TEST-13-ENC-RAID-LVM/test.sh |  6 +++---
Harald Hoyer 0840a3
 test/TEST-14-IMSM/test.sh         |  6 +++---
Harald Hoyer 0840a3
 test/TEST-15-BTRFSRAID/test.sh    |  6 +++---
Harald Hoyer 0840a3
 test/TEST-16-DMSQUASH/test.sh     |  4 ++--
Harald Hoyer 0840a3
 test/TEST-17-LVM-THIN/test.sh     |  6 +++---
Harald Hoyer 0840a3
 test/TEST-20-NFS/test.sh          |  6 +++---
Harald Hoyer 0840a3
 test/TEST-30-ISCSI/test.sh        |  8 ++++----
Harald Hoyer 0840a3
 test/TEST-40-NBD/test.sh          | 10 +++++-----
Harald Hoyer 0840a3
 test/TEST-50-MULTINIC/test.sh     |  6 +++---
Harald Hoyer 0840a3
 20 files changed, 91 insertions(+), 61 deletions(-)
Harald Hoyer 0840a3
 create mode 100644 dracut-init.sh
Harald Hoyer 0840a3
Harald Hoyer 0840a3
diff --git a/Makefile b/Makefile
Harald Hoyer 0840a3
index 0af5d0f..98a2fbf 100644
Harald Hoyer 0840a3
--- a/Makefile
Harald Hoyer 0840a3
+++ b/Makefile
Harald Hoyer 0840a3
@@ -118,6 +118,7 @@ install: all
Harald Hoyer 0840a3
 	install -m 0644 dracut.conf $(DESTDIR)$(sysconfdir)/dracut.conf
Harald Hoyer 0840a3
 	mkdir -p $(DESTDIR)$(sysconfdir)/dracut.conf.d
Harald Hoyer 0840a3
 	mkdir -p $(DESTDIR)$(pkglibdir)/dracut.conf.d
Harald Hoyer 0840a3
+	install -m 0755 dracut-init.sh $(DESTDIR)$(pkglibdir)/dracut-init.sh
Harald Hoyer 0840a3
 	install -m 0755 dracut-functions.sh $(DESTDIR)$(pkglibdir)/dracut-functions.sh
Harald Hoyer 0840a3
 	install -m 0755 dracut-version.sh $(DESTDIR)$(pkglibdir)/dracut-version.sh
Harald Hoyer 0840a3
 	ln -fs dracut-functions.sh $(DESTDIR)$(pkglibdir)/dracut-functions
Harald Hoyer 0840a3
diff --git a/dracut-functions.sh b/dracut-functions.sh
Harald Hoyer 0840a3
index 8f971c0..f415f0d 100755
Harald Hoyer 0840a3
--- a/dracut-functions.sh
Harald Hoyer 0840a3
+++ b/dracut-functions.sh
Harald Hoyer 0840a3
@@ -20,14 +20,9 @@
Harald Hoyer 0840a3
 export LC_MESSAGES=C
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
 if [[ $DRACUT_KERNEL_LAZY ]] && ! [[ $DRACUT_KERNEL_LAZY_HASHDIR ]]; then
Harald Hoyer 0840a3
-    if ! [[ -d "$initdir/.kernelmodseen" ]]; then
Harald Hoyer 0840a3
-        mkdir -p "$initdir/.kernelmodseen"
Harald Hoyer 0840a3
+    if [[ -d "$initdir/.kernelmodseen" ]]; then
Harald Hoyer 0840a3
+        DRACUT_KERNEL_LAZY_HASHDIR="$initdir/.kernelmodseen"
Harald Hoyer 0840a3
     fi
Harald Hoyer 0840a3
-    DRACUT_KERNEL_LAZY_HASHDIR="$initdir/.kernelmodseen"
Harald Hoyer 0840a3
-fi
Harald Hoyer 0840a3
-
Harald Hoyer 0840a3
-if [[ $initdir ]] && ! [[ -d $initdir ]]; then
Harald Hoyer 0840a3
-    mkdir -p "$initdir"
Harald Hoyer 0840a3
 fi
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
 # Generic substring function.  If $2 is in $1, return 0.
Harald Hoyer 0840a3
diff --git a/dracut-init.sh b/dracut-init.sh
Harald Hoyer 0840a3
new file mode 100644
Harald Hoyer 0840a3
index 0000000..469e42a
Harald Hoyer 0840a3
--- /dev/null
Harald Hoyer 0840a3
+++ b/dracut-init.sh
Harald Hoyer 0840a3
@@ -0,0 +1,34 @@
Harald Hoyer 0840a3
+#!/bin/bash
Harald Hoyer 0840a3
+#
Harald Hoyer 0840a3
+# functions used by dracut and other tools.
Harald Hoyer 0840a3
+#
Harald Hoyer 0840a3
+# Copyright 2005-2009 Red Hat, Inc.  All rights reserved.
Harald Hoyer 0840a3
+#
Harald Hoyer 0840a3
+# This program is free software; you can redistribute it and/or modify
Harald Hoyer 0840a3
+# it under the terms of the GNU General Public License as published by
Harald Hoyer 0840a3
+# the Free Software Foundation; either version 2 of the License, or
Harald Hoyer 0840a3
+# (at your option) any later version.
Harald Hoyer 0840a3
+#
Harald Hoyer 0840a3
+# This program is distributed in the hope that it will be useful,
Harald Hoyer 0840a3
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
Harald Hoyer 0840a3
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Harald Hoyer 0840a3
+# GNU General Public License for more details.
Harald Hoyer 0840a3
+#
Harald Hoyer 0840a3
+# You should have received a copy of the GNU General Public License
Harald Hoyer 0840a3
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Harald Hoyer 0840a3
+#
Harald Hoyer 0840a3
+export LC_MESSAGES=C
Harald Hoyer 0840a3
+
Harald Hoyer 0840a3
+if [[ $DRACUT_KERNEL_LAZY ]] && ! [[ $DRACUT_KERNEL_LAZY_HASHDIR ]]; then
Harald Hoyer 0840a3
+    if ! [[ -d "$initdir/.kernelmodseen" ]]; then
Harald Hoyer 0840a3
+        mkdir -p "$initdir/.kernelmodseen"
Harald Hoyer 0840a3
+    fi
Harald Hoyer 0840a3
+    DRACUT_KERNEL_LAZY_HASHDIR="$initdir/.kernelmodseen"
Harald Hoyer 0840a3
+fi
Harald Hoyer 0840a3
+
Harald Hoyer 0840a3
+if [[ $initdir ]] && ! [[ -d $initdir ]]; then
Harald Hoyer 0840a3
+    mkdir -p "$initdir"
Harald Hoyer 0840a3
+fi
Harald Hoyer 0840a3
+
Harald Hoyer 0840a3
+[[ $dracutbasedir ]] || export dracutbasedir=${BASH_SOURCE%/*}
Harald Hoyer 0840a3
+. $dracutbasedir/dracut-functions.sh
Harald Hoyer 0840a3
diff --git a/dracut.sh b/dracut.sh
Harald Hoyer 0840a3
index 52383c0..8394cee 100755
Harald Hoyer 0840a3
--- a/dracut.sh
Harald Hoyer 0840a3
+++ b/dracut.sh
Harald Hoyer 0840a3
@@ -551,7 +551,7 @@ while :; do
Harald Hoyer 0840a3
         -q|--quiet)    ((verbosity_mod_l--));;
Harald Hoyer 0840a3
         -l|--local)
Harald Hoyer 0840a3
                        allowlocal="yes"
Harald Hoyer 0840a3
-                       [[ -f "$(readlink -f "${0%/*}")/dracut-functions.sh" ]] \
Harald Hoyer 0840a3
+                       [[ -f "$(readlink -f "${0%/*}")/dracut-init.sh" ]] \
Harald Hoyer 0840a3
                            && dracutbasedir="$(readlink -f "${0%/*}")"
Harald Hoyer 0840a3
                        ;;
Harald Hoyer 0840a3
         -H|--hostonly|--host-only)
Harald Hoyer 0840a3
@@ -917,10 +917,10 @@ if [[ -f $dracutbasedir/dracut-version.sh ]]; then
Harald Hoyer 0840a3
     . $dracutbasedir/dracut-version.sh
Harald Hoyer 0840a3
 fi
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
-if [[ -f $dracutbasedir/dracut-functions.sh ]]; then
Harald Hoyer 0840a3
-    . $dracutbasedir/dracut-functions.sh
Harald Hoyer 0840a3
+if [[ -f $dracutbasedir/dracut-init.sh ]]; then
Harald Hoyer 0840a3
+    . $dracutbasedir/dracut-init.sh
Harald Hoyer 0840a3
 else
Harald Hoyer 0840a3
-    printf "%s\n" "dracut: Cannot find $dracutbasedir/dracut-functions.sh." >&2
Harald Hoyer 0840a3
+    printf "%s\n" "dracut: Cannot find $dracutbasedir/dracut-init.sh." >&2
Harald Hoyer 0840a3
     printf "%s\n" "dracut: Are you running from a git checkout?" >&2
Harald Hoyer 0840a3
     printf "%s\n" "dracut: Try passing -l as an argument to $0" >&2
Harald Hoyer 0840a3
     exit 1
Harald Hoyer 0840a3
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
Harald Hoyer 0840a3
index 4897cc9..83320e2 100755
Harald Hoyer 0840a3
--- a/test/TEST-01-BASIC/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-01-BASIC/test.sh
Harald Hoyer 0840a3
@@ -29,7 +29,7 @@ test_setup() {
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
 	mkdir -p $initdir
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	(
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -58,7 +58,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mkfs.ext3 poweroff cp umount sync
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -87,7 +87,7 @@ test_setup() {
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-02-SYSTEMD/test.sh b/test/TEST-02-SYSTEMD/test.sh
Harald Hoyer 0840a3
index 3cc5d0a..16f5c26 100755
Harald Hoyer 0840a3
--- a/test/TEST-02-SYSTEMD/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-02-SYSTEMD/test.sh
Harald Hoyer 0840a3
@@ -25,7 +25,7 @@ test_setup() {
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
 	mkdir -p $initdir
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -55,7 +55,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mkfs.ext3 poweroff cp umount
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -84,7 +84,7 @@ test_setup() {
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-03-USR-MOUNT/test.sh b/test/TEST-03-USR-MOUNT/test.sh
Harald Hoyer 0840a3
index cccec31..61063fd 100755
Harald Hoyer 0840a3
--- a/test/TEST-03-USR-MOUNT/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-03-USR-MOUNT/test.sh
Harald Hoyer 0840a3
@@ -56,7 +56,7 @@ test_setup() {
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
 	mkdir -p $initdir
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	(
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -86,7 +86,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mkfs.btrfs btrfs poweroff cp umount sync
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -122,7 +122,7 @@ test_setup() {
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh
Harald Hoyer 0840a3
index 6e05f0d..1c12e4f 100755
Harald Hoyer 0840a3
--- a/test/TEST-04-FULL-SYSTEMD/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-04-FULL-SYSTEMD/test.sh
Harald Hoyer 0840a3
@@ -57,7 +57,7 @@ test_setup() {
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
 	mkdir -p $initdir
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
         for d in usr/bin usr/sbin bin etc lib "$libdir" sbin tmp usr var var/log dev proc sys sysroot root run; do
Harald Hoyer 0840a3
             if [ -L "/$d" ]; then
Harald Hoyer 0840a3
@@ -222,7 +222,7 @@ EOF
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mkfs.btrfs btrfs poweroff cp umount sync
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -254,7 +254,7 @@ EOF
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-10-RAID/test.sh b/test/TEST-10-RAID/test.sh
Harald Hoyer 0840a3
index e7a1131..523b61a 100755
Harald Hoyer 0840a3
--- a/test/TEST-10-RAID/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-10-RAID/test.sh
Harald Hoyer 0840a3
@@ -27,7 +27,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Create what will eventually be our root filesystem onto an overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	(
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -56,7 +56,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mke2fs poweroff cp umount
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -84,7 +84,7 @@ test_setup() {
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst ./cryptroot-ask.sh /sbin/cryptroot-ask
Harald Hoyer 0840a3
diff --git a/test/TEST-11-LVM/test.sh b/test/TEST-11-LVM/test.sh
Harald Hoyer 0840a3
index 0002455..34c7736 100755
Harald Hoyer 0840a3
--- a/test/TEST-11-LVM/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-11-LVM/test.sh
Harald Hoyer 0840a3
@@ -24,7 +24,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Create what will eventually be our root filesystem onto an overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -54,7 +54,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mke2fs poweroff cp umount
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -77,7 +77,7 @@ test_setup() {
Harald Hoyer 0840a3
     grep -F -m 1 -q dracut-root-block-created $TESTDIR/root.ext2 || return 1
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-12-RAID-DEG/test.sh b/test/TEST-12-RAID-DEG/test.sh
Harald Hoyer 0840a3
index 6c7b8b3..f4ec2d0 100755
Harald Hoyer 0840a3
--- a/test/TEST-12-RAID-DEG/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-12-RAID-DEG/test.sh
Harald Hoyer 0840a3
@@ -66,7 +66,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Create what will eventually be our root filesystem onto an overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	(
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -94,7 +94,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mke2fs poweroff cp umount dd grep
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -127,7 +127,7 @@ test_setup() {
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-13-ENC-RAID-LVM/test.sh b/test/TEST-13-ENC-RAID-LVM/test.sh
Harald Hoyer 0840a3
index 14d8196..ea81697 100755
Harald Hoyer 0840a3
--- a/test/TEST-13-ENC-RAID-LVM/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-13-ENC-RAID-LVM/test.sh
Harald Hoyer 0840a3
@@ -62,7 +62,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Create what will eventually be our root filesystem onto an overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -91,7 +91,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mke2fs poweroff cp umount grep
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -121,7 +121,7 @@ test_setup() {
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-14-IMSM/test.sh b/test/TEST-14-IMSM/test.sh
Harald Hoyer 0840a3
index 291f3c5..a05d091 100755
Harald Hoyer 0840a3
--- a/test/TEST-14-IMSM/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-14-IMSM/test.sh
Harald Hoyer 0840a3
@@ -54,7 +54,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Create what will eventually be our root filesystem onto an overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	(
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -83,7 +83,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mke2fs poweroff cp umount grep
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
@@ -111,7 +111,7 @@ test_setup() {
Harald Hoyer 0840a3
     echo $MD_UUID > $TESTDIR/mduuid
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-15-BTRFSRAID/test.sh b/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer 0840a3
index 7f99d8b..5a9b6e1 100755
Harald Hoyer 0840a3
--- a/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer 0840a3
@@ -26,7 +26,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Create what will eventually be our root filesystem onto an overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -55,7 +55,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mkfs.btrfs poweroff cp umount
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -85,7 +85,7 @@ test_setup() {
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
    (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-16-DMSQUASH/test.sh b/test/TEST-16-DMSQUASH/test.sh
Harald Hoyer 0840a3
index 338f7f4..7e5a7de 100755
Harald Hoyer 0840a3
--- a/test/TEST-16-DMSQUASH/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-16-DMSQUASH/test.sh
Harald Hoyer 0840a3
@@ -30,7 +30,7 @@ test_setup() {
Harald Hoyer 0840a3
     mkdir -p -- "$TESTDIR"/overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir="$TESTDIR"/overlay
Harald Hoyer 0840a3
-	. "$basedir"/dracut-functions.sh
Harald Hoyer 0840a3
+	. "$basedir"/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
@@ -49,7 +49,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Create what will eventually be our root filesystem onto an overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir="$TESTDIR"/root-source
Harald Hoyer 0840a3
-	. "$basedir"/dracut-functions.sh
Harald Hoyer 0840a3
+	. "$basedir"/dracut-init.sh
Harald Hoyer 0840a3
 	(
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
diff --git a/test/TEST-17-LVM-THIN/test.sh b/test/TEST-17-LVM-THIN/test.sh
Harald Hoyer 0840a3
index 811a66c..859d4dc 100755
Harald Hoyer 0840a3
--- a/test/TEST-17-LVM-THIN/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-17-LVM-THIN/test.sh
Harald Hoyer 0840a3
@@ -24,7 +24,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Create what will eventually be our root filesystem onto an overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -54,7 +54,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple sfdisk mke2fs poweroff cp umount
Harald Hoyer 0840a3
 	inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -77,7 +77,7 @@ test_setup() {
Harald Hoyer 0840a3
     grep -F -m 1 -q dracut-root-block-created $TESTDIR/root.ext2 || return 1
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
 	export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-	. $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+	. $basedir/dracut-init.sh
Harald Hoyer 0840a3
 	inst_multiple poweroff shutdown
Harald Hoyer 0840a3
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
Harald Hoyer 0840a3
index 04616ef..61e4c1a 100755
Harald Hoyer 0840a3
--- a/test/TEST-20-NFS/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-20-NFS/test.sh
Harald Hoyer 0840a3
@@ -217,7 +217,7 @@ test_setup() {
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/mnt
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
         for _f in modules.builtin.bin modules.builtin; do
Harald Hoyer 0840a3
             [[ $srcmods/$_f ]] && break
Harald Hoyer 0840a3
@@ -283,7 +283,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Make client root inside server root
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/mnt/nfs/client
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
         inst_multiple sh shutdown poweroff stty cat ps ln ip \
Harald Hoyer 0840a3
             mount dmesg mkdir cp ping grep setsid ls vi /etc/virc less cat
Harald Hoyer 0840a3
@@ -331,7 +331,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Make an overlay with needed tools for the test harness
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
         mkdir $TESTDIR/overlay
Harald Hoyer 0840a3
         inst_multiple poweroff shutdown
Harald Hoyer 0840a3
         inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
Harald Hoyer 0840a3
index 2c082fe..59e9c5b 100755
Harald Hoyer 0840a3
--- a/test/TEST-30-ISCSI/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-30-ISCSI/test.sh
Harald Hoyer 0840a3
@@ -103,7 +103,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Create what will eventually be our root filesystem onto an overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p -- dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -128,7 +128,7 @@ test_setup() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
         inst_multiple sfdisk mkfs.ext3 poweroff cp umount setsid
Harald Hoyer 0840a3
         inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 0840a3
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 0840a3
@@ -164,7 +164,7 @@ test_setup() {
Harald Hoyer 0840a3
     rm -- $TESTDIR/client.img
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
         inst_multiple poweroff shutdown
Harald Hoyer 0840a3
         inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
         inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
@@ -185,7 +185,7 @@ test_setup() {
Harald Hoyer 0840a3
     kernel=$KVERSION
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/mnt
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir";
Harald Hoyer 0840a3
             mkdir -p dev sys proc etc var/run tmp var/lib/dhcpd /etc/iscsi
Harald Hoyer 0840a3
diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh
Harald Hoyer 0840a3
index aa4b46b..39966ac 100755
Harald Hoyer 0840a3
--- a/test/TEST-40-NBD/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-40-NBD/test.sh
Harald Hoyer 0840a3
@@ -192,7 +192,7 @@ make_encrypted_root() {
Harald Hoyer 0840a3
     # Create what will eventually be our root filesystem onto an overlay
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/overlay/source
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
         mkdir -p "$initdir"
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir"; mkdir -p dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -217,7 +217,7 @@ make_encrypted_root() {
Harald Hoyer 0840a3
     # second, install the files needed to make the root filesystem
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir"; mkdir -p dev sys proc etc var/run tmp
Harald Hoyer 0840a3
             mkdir -p root usr/bin usr/lib usr/lib64 usr/sbin
Harald Hoyer 0840a3
@@ -263,7 +263,7 @@ make_client_root() {
Harald Hoyer 0840a3
     kernel=$KVERSION
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/mnt
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
         mkdir -p "$initdir"
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir"; mkdir -p dev sys proc etc var/run tmp
Harald Hoyer 0840a3
@@ -304,7 +304,7 @@ make_server_root() {
Harald Hoyer 0840a3
     kernel=$KVERSION
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/mnt
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
         mkdir -p "$initdir"
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir";
Harald Hoyer 0840a3
@@ -351,7 +351,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Make the test image
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir=$TESTDIR/overlay
Harald Hoyer 0840a3
-        . $basedir/dracut-functions.sh
Harald Hoyer 0840a3
+        . $basedir/dracut-init.sh
Harald Hoyer 0840a3
         inst_multiple poweroff shutdown
Harald Hoyer 0840a3
         inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
         inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 0840a3
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
Harald Hoyer 0840a3
index b292cc0..b878380 100755
Harald Hoyer 0840a3
--- a/test/TEST-50-MULTINIC/test.sh
Harald Hoyer 0840a3
+++ b/test/TEST-50-MULTINIC/test.sh
Harald Hoyer 0840a3
@@ -146,7 +146,7 @@ test_setup() {
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir="$TESTDIR"/mnt
Harald Hoyer 0840a3
-        . "$basedir"/dracut-functions.sh
Harald Hoyer 0840a3
+        . "$basedir"/dracut-init.sh
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir";
Harald Hoyer 0840a3
@@ -212,7 +212,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Make client root inside server root
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir="$TESTDIR"/mnt/nfs/client
Harald Hoyer 0840a3
-        . "$basedir"/dracut-functions.sh
Harald Hoyer 0840a3
+        . "$basedir"/dracut-init.sh
Harald Hoyer 0840a3
         (
Harald Hoyer 0840a3
             cd "$initdir"
Harald Hoyer 0840a3
             mkdir -p dev sys proc etc run
Harald Hoyer 0840a3
@@ -256,7 +256,7 @@ test_setup() {
Harald Hoyer 0840a3
     # Make an overlay with needed tools for the test harness
Harald Hoyer 0840a3
     (
Harald Hoyer 0840a3
         export initdir="$TESTDIR"/overlay
Harald Hoyer 0840a3
-        . "$basedir"/dracut-functions.sh
Harald Hoyer 0840a3
+        . "$basedir"/dracut-init.sh
Harald Hoyer 0840a3
         inst_multiple poweroff shutdown
Harald Hoyer 0840a3
         inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 0840a3
         inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules