summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-08-05 12:10:12 +0200
committerHarald Hoyer <harald@redhat.com>2013-08-07 10:33:15 +0200
commitaf11946054193dbb13eec70cb62e6b0963c5fb41 (patch)
tree117a1007c98208a578bb104cf494829e2167d3c5 /test
parent55a0b3abc7b8da4f3714cfcb5d34f7aa4e78e5bc (diff)
downloaddracut-af11946054193dbb13eec70cb62e6b0963c5fb41.tar.gz
dracut-af11946054193dbb13eec70cb62e6b0963c5fb41.tar.bz2
dracut-af11946054193dbb13eec70cb62e6b0963c5fb41.zip
dracut-functions.sh: inst_multiple == dracut_install
Diffstat (limited to 'test')
-rwxr-xr-xtest/TEST-01-BASIC/test.sh12
-rwxr-xr-xtest/TEST-02-SYSTEMD/test.sh12
-rwxr-xr-xtest/TEST-03-USR-MOUNT/test.sh12
-rwxr-xr-xtest/TEST-04-FULL-SYSTEMD/test.sh26
-rwxr-xr-xtest/TEST-10-RAID/test.sh14
-rwxr-xr-xtest/TEST-11-LVM/test.sh12
-rwxr-xr-xtest/TEST-12-RAID-DEG/test.sh12
-rwxr-xr-xtest/TEST-13-ENC-RAID-LVM/test.sh12
-rwxr-xr-xtest/TEST-15-BTRFSRAID/test.sh12
-rwxr-xr-xtest/TEST-16-DMSQUASH/test.sh10
-rwxr-xr-xtest/TEST-20-NFS/test.sh22
-rwxr-xr-xtest/TEST-30-ISCSI/test.sh20
-rwxr-xr-xtest/TEST-40-NBD/test.sh20
-rwxr-xr-xtest/TEST-50-MULTINIC/test.sh24
-rwxr-xr-xtest/old.TEST-14-IMSM/test.sh12
15 files changed, 116 insertions, 116 deletions
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
index 161fcf34..f857fd4c 100755
--- a/test/TEST-01-BASIC/test.sh
+++ b/test/TEST-01-BASIC/test.sh
@@ -30,19 +30,19 @@ test_setup() {
export initdir=$TESTDIR/overlay/source
mkdir -p $initdir
. $basedir/dracut-functions.sh
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient \
umount strace less setsid
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep
+ inst_multiple grep
inst_simple /etc/os-release
inst ./test-init.sh /sbin/init
- find_binary plymouth >/dev/null && dracut_install plymouth
+ find_binary plymouth >/dev/null && inst_multiple plymouth
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
cp -a /etc/ld.so.conf* $initdir/etc
sudo ldconfig -r "$initdir"
@@ -52,7 +52,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mkfs.ext3 poweroff cp umount sync
+ inst_multiple sfdisk mkfs.ext3 poweroff cp umount sync
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
@@ -81,7 +81,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
diff --git a/test/TEST-02-SYSTEMD/test.sh b/test/TEST-02-SYSTEMD/test.sh
index 155982c7..cc9da27f 100755
--- a/test/TEST-02-SYSTEMD/test.sh
+++ b/test/TEST-02-SYSTEMD/test.sh
@@ -26,19 +26,19 @@ test_setup() {
export initdir=$TESTDIR/overlay/source
mkdir -p $initdir
. $basedir/dracut-functions.sh
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient \
umount strace less setsid
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep
+ inst_multiple grep
inst_simple /etc/os-release
inst ./test-init.sh /sbin/init
- find_binary plymouth >/dev/null && dracut_install plymouth
+ find_binary plymouth >/dev/null && inst_multiple plymouth
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
cp -a /etc/ld.so.conf* $initdir/etc
sudo ldconfig -r "$initdir"
@@ -48,7 +48,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mkfs.ext3 poweroff cp umount
+ inst_multiple sfdisk mkfs.ext3 poweroff cp umount
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
@@ -77,7 +77,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
diff --git a/test/TEST-03-USR-MOUNT/test.sh b/test/TEST-03-USR-MOUNT/test.sh
index 246fc9a9..b3d709eb 100755
--- a/test/TEST-03-USR-MOUNT/test.sh
+++ b/test/TEST-03-USR-MOUNT/test.sh
@@ -57,20 +57,20 @@ test_setup() {
export initdir=$TESTDIR/overlay/source
mkdir -p $initdir
. $basedir/dracut-functions.sh
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient \
umount strace less setsid
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep
+ inst_multiple grep
inst_simple ./fstab /etc/fstab
inst_simple /etc/os-release
inst ./test-init.sh /sbin/init
- find_binary plymouth >/dev/null && dracut_install plymouth
+ find_binary plymouth >/dev/null && inst_multiple plymouth
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
cp -a /etc/ld.so.conf* $initdir/etc
sudo ldconfig -r "$initdir"
@@ -80,7 +80,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mkfs.btrfs btrfs poweroff cp umount sync
+ inst_multiple sfdisk mkfs.btrfs btrfs poweroff cp umount sync
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
@@ -116,7 +116,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh
index 92c2f8d8..d4998d85 100755
--- a/test/TEST-04-FULL-SYSTEMD/test.sh
+++ b/test/TEST-04-FULL-SYSTEMD/test.sh
@@ -70,17 +70,17 @@ test_setup() {
ln -sfn /run "$initdir/var/run"
ln -sfn /run/lock "$initdir/var/lock"
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient \
umount strace less setsid tree systemctl reset
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep
+ inst_multiple grep
inst_simple ./fstab /etc/fstab
rpm -ql systemd | xargs -r $DRACUT_INSTALL ${initdir+-D "$initdir"} -o -a -l
inst /lib/systemd/system/systemd-remount-fs.service
@@ -89,13 +89,13 @@ test_setup() {
inst /etc/sysconfig/init
inst /lib/systemd/system/slices.target
inst /lib/systemd/system/system.slice
- dracut_install -o /lib/systemd/system/dracut*
+ inst_multiple -o /lib/systemd/system/dracut*
# make a journal directory
mkdir -p $initdir/var/log/journal
# install some basic config files
- dracut_install -o \
+ inst_multiple -o \
/etc/machine-id \
/etc/adjtime \
/etc/sysconfig/init \
@@ -149,9 +149,9 @@ EOF
# EOF
# install basic tools needed
- dracut_install sh bash setsid loadkeys setfont \
+ inst_multiple sh bash setsid loadkeys setfont \
login sushell sulogin gzip sleep echo mount umount
- dracut_install modprobe
+ inst_multiple modprobe
# install libnss_files for login
inst_libdir_file "libnss_files*"
@@ -164,7 +164,7 @@ EOF
/lib64/security \
/lib/security -xtype f \
| while read file; do
- dracut_install -o $file
+ inst_multiple -o $file
done
# install dbus socket and service file
@@ -185,7 +185,7 @@ EOF
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
# softlink mtab
ln -fs /proc/self/mounts $initdir/etc/mtab
@@ -194,11 +194,11 @@ EOF
egrep -ho '^Exec[^ ]*=[^ ]+' $initdir/lib/systemd/system/*.service \
| while read i; do
i=${i##Exec*=}; i=${i##-}
- dracut_install -o $i
+ inst_multiple -o $i
done
# some helper tools for debugging
- [[ $DEBUGTOOLS ]] && dracut_install $DEBUGTOOLS
+ [[ $DEBUGTOOLS ]] && inst_multiple $DEBUGTOOLS
# install ld.so.conf* and run ldconfig
cp -a /etc/ld.so.conf* $initdir/etc
@@ -222,7 +222,7 @@ EOF
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mkfs.btrfs btrfs poweroff cp umount sync
+ inst_multiple sfdisk mkfs.btrfs btrfs poweroff cp umount sync
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
@@ -257,7 +257,7 @@ EOF
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
diff --git a/test/TEST-10-RAID/test.sh b/test/TEST-10-RAID/test.sh
index b6af703a..a2226cd5 100755
--- a/test/TEST-10-RAID/test.sh
+++ b/test/TEST-10-RAID/test.sh
@@ -29,19 +29,19 @@ test_setup() {
export initdir=$TESTDIR/overlay/source
(mkdir -p "$initdir"; cd "$initdir"; mkdir -p dev sys proc etc var/run tmp run)
. $basedir/dracut-functions.sh
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst_simple /etc/os-release
inst ./test-init.sh /sbin/init
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep
- dracut_install -o /lib/systemd/systemd-shutdown
- find_binary plymouth >/dev/null && dracut_install plymouth
+ inst_multiple grep
+ inst_multiple -o /lib/systemd/systemd-shutdown
+ find_binary plymouth >/dev/null && inst_multiple plymouth
cp -a /etc/ld.so.conf* $initdir/etc
sudo ldconfig -r "$initdir"
)
@@ -50,7 +50,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mke2fs poweroff cp umount
+ inst_multiple sfdisk mke2fs poweroff cp umount
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
@@ -78,7 +78,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst ./cryptroot-ask.sh /sbin/cryptroot-ask
mkdir -p $initdir/etc
diff --git a/test/TEST-11-LVM/test.sh b/test/TEST-11-LVM/test.sh
index 47761b35..6f2461c9 100755
--- a/test/TEST-11-LVM/test.sh
+++ b/test/TEST-11-LVM/test.sh
@@ -25,18 +25,18 @@ test_setup() {
(
export initdir=$TESTDIR/overlay/source
. $basedir/dracut-functions.sh
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep
+ inst_multiple grep
inst_simple /etc/os-release
inst ./test-init.sh /sbin/init
- find_binary plymouth >/dev/null && dracut_install plymouth
+ find_binary plymouth >/dev/null && inst_multiple plymouth
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
cp -a /etc/ld.so.conf* $initdir/etc
mkdir $initdir/run
@@ -47,7 +47,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mke2fs poweroff cp umount
+ inst_multiple sfdisk mke2fs poweroff cp umount
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
@@ -70,7 +70,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
diff --git a/test/TEST-12-RAID-DEG/test.sh b/test/TEST-12-RAID-DEG/test.sh
index 3eabbd59..6ddff3fe 100755
--- a/test/TEST-12-RAID-DEG/test.sh
+++ b/test/TEST-12-RAID-DEG/test.sh
@@ -66,18 +66,18 @@ test_setup() {
(
export initdir=$TESTDIR/overlay/source
. $basedir/dracut-functions.sh
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep
+ inst_multiple grep
inst_simple /etc/os-release
inst ./test-init.sh /sbin/init
- find_binary plymouth >/dev/null && dracut_install plymouth
+ find_binary plymouth >/dev/null && inst_multiple plymouth
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
cp -a /etc/ld.so.conf* $initdir/etc
sudo ldconfig -r "$initdir"
@@ -87,7 +87,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mke2fs poweroff cp umount dd grep
+ inst_multiple sfdisk mke2fs poweroff cp umount dd grep
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
@@ -120,7 +120,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
inst ./cryptroot-ask.sh /sbin/cryptroot-ask
diff --git a/test/TEST-13-ENC-RAID-LVM/test.sh b/test/TEST-13-ENC-RAID-LVM/test.sh
index d069293b..51021420 100755
--- a/test/TEST-13-ENC-RAID-LVM/test.sh
+++ b/test/TEST-13-ENC-RAID-LVM/test.sh
@@ -63,18 +63,18 @@ test_setup() {
(
export initdir=$TESTDIR/overlay/source
. $basedir/dracut-functions.sh
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep
+ inst_multiple grep
inst_simple /etc/os-release
inst ./test-init.sh /sbin/init
- find_binary plymouth >/dev/null && dracut_install plymouth
+ find_binary plymouth >/dev/null && inst_multiple plymouth
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
cp -a /etc/ld.so.conf* $initdir/etc
sudo ldconfig -r "$initdir"
@@ -84,7 +84,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mke2fs poweroff cp umount grep
+ inst_multiple sfdisk mke2fs poweroff cp umount grep
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
@@ -114,7 +114,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
inst ./cryptroot-ask.sh /sbin/cryptroot-ask
diff --git a/test/TEST-15-BTRFSRAID/test.sh b/test/TEST-15-BTRFSRAID/test.sh
index 6f668752..e6ff3517 100755
--- a/test/TEST-15-BTRFSRAID/test.sh
+++ b/test/TEST-15-BTRFSRAID/test.sh
@@ -27,17 +27,17 @@ test_setup() {
(
export initdir=$TESTDIR/overlay/source
. $basedir/dracut-functions.sh
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep
+ inst_multiple grep
inst ./test-init.sh /sbin/init
- find_binary plymouth >/dev/null && dracut_install plymouth
+ find_binary plymouth >/dev/null && inst_multiple plymouth
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
cp -a /etc/ld.so.conf* $initdir/etc
sudo ldconfig -r "$initdir"
@@ -47,7 +47,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mkfs.btrfs poweroff cp umount
+ inst_multiple sfdisk mkfs.btrfs poweroff cp umount
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
@@ -77,7 +77,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
diff --git a/test/TEST-16-DMSQUASH/test.sh b/test/TEST-16-DMSQUASH/test.sh
index e9d9655f..252e8454 100755
--- a/test/TEST-16-DMSQUASH/test.sh
+++ b/test/TEST-16-DMSQUASH/test.sh
@@ -31,7 +31,7 @@ test_setup() {
(
export initdir="$TESTDIR"/overlay
. "$basedir"/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
@@ -49,16 +49,16 @@ test_setup() {
(
export initdir="$TESTDIR"/root-source
. "$basedir"/dracut-functions.sh
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient \
umount strace less
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[[ -f ${_terminfodir}/l/linux ]] && break
done
- dracut_install -o "${_terminfodir}"/l/linux
+ inst_multiple -o "${_terminfodir}"/l/linux
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep syslinux isohybrid
+ inst_multiple grep syslinux isohybrid
for f in /usr/share/syslinux/*; do
inst_simple "$f"
done
@@ -66,7 +66,7 @@ test_setup() {
inst ./test-init.sh /sbin/init
inst "$TESTDIR"/initramfs.testing "/boot/initramfs-$KVERSION.img"
inst /boot/vmlinuz-"$KVERSION"
- find_binary plymouth >/dev/null && dracut_install plymouth
+ find_binary plymouth >/dev/null && inst_multiple plymouth
(cd "$initdir"; mkdir -p -- dev sys proc etc var/run tmp )
cp -a -- /etc/ld.so.conf* "$initdir"/etc
sudo ldconfig -r -- "$initdir"
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
index 2c8ee186..bd3cd3f2 100755
--- a/test/TEST-20-NFS/test.sh
+++ b/test/TEST-20-NFS/test.sh
@@ -235,18 +235,18 @@ test_setup() {
[[ $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f"
done
- dracut_install sh ls shutdown poweroff stty cat ps ln ip \
+ inst_multiple sh ls shutdown poweroff stty cat ps ln ip \
dmesg mkdir cp ping exportfs \
modprobe rpc.nfsd rpc.mountd showmount tcpdump \
/etc/services sleep mount chmod
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
- type -P portmap >/dev/null && dracut_install portmap
- type -P rpcbind >/dev/null && dracut_install rpcbind
- [ -f /etc/netconfig ] && dracut_install /etc/netconfig
- type -P dhcpd >/dev/null && dracut_install dhcpd
+ inst_multiple -o ${_terminfodir}/l/linux
+ type -P portmap >/dev/null && inst_multiple portmap
+ type -P rpcbind >/dev/null && inst_multiple rpcbind
+ [ -f /etc/netconfig ] && inst_multiple /etc/netconfig
+ type -P dhcpd >/dev/null && inst_multiple dhcpd
[ -x /usr/sbin/dhcpd3 ] && inst /usr/sbin/dhcpd3 /usr/sbin/dhcpd
instmods nfsd sunrpc ipv6 lockd af_packet
inst ./server-init.sh /sbin/init
@@ -254,8 +254,8 @@ test_setup() {
inst ./hosts /etc/hosts
inst ./exports /etc/exports
inst ./dhcpd.conf /etc/dhcpd.conf
- dracut_install /etc/nsswitch.conf /etc/rpc /etc/protocols
- dracut_install rpc.idmapd /etc/idmapd.conf
+ inst_multiple /etc/nsswitch.conf /etc/rpc /etc/protocols
+ inst_multiple rpc.idmapd /etc/idmapd.conf
inst_libdir_file 'libnfsidmap_nsswitch.so*'
inst_libdir_file 'libnfsidmap/*.so*'
@@ -290,12 +290,12 @@ test_setup() {
export initdir=$TESTDIR/mnt/nfs/client
. $basedir/dracut-functions.sh
- dracut_install sh shutdown poweroff stty cat ps ln ip \
+ inst_multiple sh shutdown poweroff stty cat ps ln ip \
mount dmesg mkdir cp ping grep
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst ./client-init.sh /sbin/init
inst_simple /etc/os-release
(
@@ -334,7 +334,7 @@ test_setup() {
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
mkdir $TESTDIR/overlay
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
index 29c8d0ce..4c299564 100755
--- a/test/TEST-30-ISCSI/test.sh
+++ b/test/TEST-30-ISCSI/test.sh
@@ -105,12 +105,12 @@ test_setup() {
(
export initdir=$TESTDIR/overlay/source
. $basedir/dracut-functions.sh
- dracut_install sh shutdown poweroff stty cat ps ln ip \
+ inst_multiple sh shutdown poweroff stty cat ps ln ip \
mount dmesg mkdir cp ping grep
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst_simple /etc/os-release
inst ./client-init.sh /sbin/init
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
@@ -122,7 +122,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mkfs.ext3 poweroff cp umount
+ inst_multiple sfdisk mkfs.ext3 poweroff cp umount
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
@@ -158,7 +158,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
@@ -183,25 +183,25 @@ test_setup() {
mkdir -p dev sys proc etc var/run tmp var/lib/dhcpd /etc/iscsi
)
inst /etc/passwd /etc/passwd
- dracut_install sh ls shutdown poweroff stty cat ps ln ip \
+ inst_multiple sh ls shutdown poweroff stty cat ps ln ip \
dmesg mkdir cp ping \
modprobe tcpdump \
/etc/services sleep mount chmod
- dracut_install /usr/sbin/iscsi-target
+ inst_multiple /usr/sbin/iscsi-target
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
instmods iscsi_tcp crc32c ipv6
inst ./targets /etc/iscsi/targets
- [ -f /etc/netconfig ] && dracut_install /etc/netconfig
- type -P dhcpd >/dev/null && dracut_install dhcpd
+ [ -f /etc/netconfig ] && inst_multiple /etc/netconfig
+ type -P dhcpd >/dev/null && inst_multiple dhcpd
[ -x /usr/sbin/dhcpd3 ] && inst /usr/sbin/dhcpd3 /usr/sbin/dhcpd
inst_simple /etc/os-release
inst ./server-init.sh /sbin/init
inst ./hosts /etc/hosts
inst ./dhcpd.conf /etc/dhcpd.conf
- dracut_install /etc/nsswitch.conf /etc/rpc /etc/protocols
+ inst_multiple /etc/nsswitch.conf /etc/rpc /etc/protocols
inst /etc/group /etc/group
cp -a /etc/ld.so.conf* $initdir/etc
diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh
index 124682ac..7cf64b15 100755
--- a/test/TEST-40-NBD/test.sh
+++ b/test/TEST-40-NBD/test.sh
@@ -198,15 +198,15 @@ make_encrypted_root() {
. $basedir/dracut-functions.sh
mkdir -p "$initdir"
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip \
mount dmesg mkdir cp ping
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst ./client-init.sh /sbin/init
inst_simple /etc/os-release
- find_binary plymouth >/dev/null && dracut_install plymouth
+ find_binary plymouth >/dev/null && inst_multiple plymouth
cp -a /etc/ld.so.conf* $initdir/etc
sudo ldconfig -r "$initdir"
)
@@ -215,7 +215,7 @@ make_encrypted_root() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install mke2fs poweroff cp umount tune2fs
+ inst_multiple mke2fs poweroff cp umount tune2fs
inst_hook emergency 000 ./hard-off.sh
inst_hook initqueue 01 ./create-root.sh
inst_hook initqueue/finished 01 ./finished-false.sh
@@ -256,12 +256,12 @@ make_client_root() {
. $basedir/dracut-functions.sh
mkdir -p "$initdir"
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
- dracut_install sh ls shutdown poweroff stty cat ps ln ip \
+ inst_multiple sh ls shutdown poweroff stty cat ps ln ip \
dmesg mkdir cp ping
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst ./client-init.sh /sbin/init
inst_simple /etc/os-release
inst /etc/nsswitch.conf /etc/nsswitch.conf
@@ -294,15 +294,15 @@ make_server_root() {
cd "$initdir";
mkdir -p dev sys proc etc var/run var/lib/dhcpd tmp
)
- dracut_install sh ls shutdown poweroff stty cat ps ln ip \
+ inst_multiple sh ls shutdown poweroff stty cat ps ln ip \
dmesg mkdir cp ping grep \
sleep nbd-server chmod
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
instmods af_packet
- type -P dhcpd >/dev/null && dracut_install dhcpd
+ type -P dhcpd >/dev/null && inst_multiple dhcpd
[ -x /usr/sbin/dhcpd3 ] && inst /usr/sbin/dhcpd3 /usr/sbin/dhcpd
inst ./server-init.sh /sbin/init
inst_simple /etc/os-release
@@ -336,7 +336,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
inst ./cryptroot-ask.sh /sbin/cryptroot-ask
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
index 6e991d35..b616e6b1 100755
--- a/test/TEST-50-MULTINIC/test.sh
+++ b/test/TEST-50-MULTINIC/test.sh
@@ -156,18 +156,18 @@ test_setup() {
[[ $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f"
done
- dracut_install sh ls shutdown poweroff stty cat ps ln ip \
+ inst_multiple sh ls shutdown poweroff stty cat ps ln ip \
dmesg mkdir cp ping exportfs \
modprobe rpc.nfsd rpc.mountd showmount tcpdump \
/etc/services sleep mount chmod
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f "${_terminfodir}"/l/linux ] && break
done
- dracut_install -o "${_terminfodir}"/l/linux
- type -P portmap >/dev/null && dracut_install portmap
- type -P rpcbind >/dev/null && dracut_install rpcbind
- [ -f /etc/netconfig ] && dracut_install /etc/netconfig
- type -P dhcpd >/dev/null && dracut_install dhcpd
+ inst_multiple -o "${_terminfodir}"/l/linux
+ type -P portmap >/dev/null && inst_multiple portmap
+ type -P rpcbind >/dev/null && inst_multiple rpcbind
+ [ -f /etc/netconfig ] && inst_multiple /etc/netconfig
+ type -P dhcpd >/dev/null && inst_multiple dhcpd
[ -x /usr/sbin/dhcpd3 ] && inst /usr/sbin/dhcpd3 /usr/sbin/dhcpd
instmods nfsd sunrpc ipv6 lockd af_packet
inst_simple /etc/os-release
@@ -175,9 +175,9 @@ test_setup() {
inst ./hosts /etc/hosts
inst ./exports /etc/exports
inst ./dhcpd.conf /etc/dhcpd.conf
- dracut_install /etc/nsswitch.conf /etc/rpc /etc/protocols
+ inst_multiple /etc/nsswitch.conf /etc/rpc /etc/protocols
- dracut_install rpc.idmapd /etc/idmapd.conf
+ inst_multiple rpc.idmapd /etc/idmapd.conf
inst_libdir_file 'libnfsidmap_nsswitch.so*'
inst_libdir_file 'libnfsidmap/*.so*'
@@ -203,12 +203,12 @@ test_setup() {
(
export initdir="$TESTDIR"/mnt/nfs/client
. "$basedir"/dracut-functions.sh
- dracut_install sh shutdown poweroff stty cat ps ln ip \
+ inst_multiple sh shutdown poweroff stty cat ps ln ip \
mount dmesg mkdir cp ping grep ls
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[[ -f ${_terminfodir}/l/linux ]] && break
done
- dracut_install -o "${_terminfodir}"/l/linux
+ inst_multiple -o "${_terminfodir}"/l/linux
inst_simple /etc/os-release
inst ./client-init.sh /sbin/init
(
@@ -220,7 +220,7 @@ test_setup() {
inst /etc/passwd /etc/passwd
inst /etc/group /etc/group
- dracut_install rpc.idmapd /etc/idmapd.conf
+ inst_multiple rpc.idmapd /etc/idmapd.conf
inst_libdir_file 'libnfsidmap_nsswitch.so*'
inst_libdir_file 'libnfsidmap/*.so*'
inst_libdir_file 'libnfsidmap*.so*'
@@ -243,7 +243,7 @@ test_setup() {
(
export initdir="$TESTDIR"/overlay
. "$basedir"/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
diff --git a/test/old.TEST-14-IMSM/test.sh b/test/old.TEST-14-IMSM/test.sh
index fbb459da..434283b1 100755
--- a/test/old.TEST-14-IMSM/test.sh
+++ b/test/old.TEST-14-IMSM/test.sh
@@ -59,17 +59,17 @@ test_setup() {
(
export initdir=$TESTDIR/overlay/source
. $basedir/dracut-functions.sh
- dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \
+ inst_multiple sh df free ls shutdown poweroff stty cat ps ln ip route \
mount dmesg ifconfig dhclient mkdir cp ping dhclient
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f ${_terminfodir}/l/linux ] && break
done
- dracut_install -o ${_terminfodir}/l/linux
+ inst_multiple -o ${_terminfodir}/l/linux
inst "$basedir/modules.d/40network/dhclient-script.sh" "/sbin/dhclient-script"
inst "$basedir/modules.d/40network/ifup.sh" "/sbin/ifup"
- dracut_install grep
+ inst_multiple grep
inst ./test-init.sh /sbin/init
- find_binary plymouth >/dev/null && dracut_install plymouth
+ find_binary plymouth >/dev/null && inst_multiple plymouth
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
cp -a /etc/ld.so.conf* $initdir/etc
mkdir $initdir/run
@@ -80,7 +80,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install sfdisk mke2fs poweroff cp umount
+ inst_multiple sfdisk mke2fs poweroff cp umount
inst_hook initqueue 01 ./create-root.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)
@@ -106,7 +106,7 @@ test_setup() {
(
export initdir=$TESTDIR/overlay
. $basedir/dracut-functions.sh
- dracut_install poweroff shutdown
+ inst_multiple poweroff shutdown
inst_hook emergency 000 ./hard-off.sh
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
)