Skip to content

Commit c5e036b

Browse files
Henrik66aafeijoo-suse
authored andcommitted
test: move more makeroot dependencies into test-makeroot dracut module
1 parent afb5717 commit c5e036b

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

modules.d/80test-makeroot/module-setup.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ check() {
66
}
77

88
depends() {
9-
echo "qemu"
9+
echo "dash rootfs-block kernel-modules qemu"
10+
}
11+
12+
installkernel() {
13+
instmods piix ide-gd_mod ata_piix ext4 sd_mod
1014
}
1115

1216
install() {

test/TEST-01-BASIC/test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ test_setup() {
3737
# We do it this way so that we do not risk trashing the host mdraid
3838
# devices, volume groups, encrypted partitions, etc.
3939
"$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
40-
-m "test-makeroot dash rootfs-block kernel-modules" \
41-
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
40+
-m "test-makeroot" \
4241
-I "mkfs.ext4" \
4342
-i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
4443
--nomdadmconf \

test/TEST-02-SYSTEMD/test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ test_setup() {
3939
# We do it this way so that we do not risk trashing the host mdraid
4040
# devices, volume groups, encrypted partitions, etc.
4141
"$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
42-
-m "test-makeroot dash rootfs-block kernel-modules qemu" \
43-
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
42+
-m "test-makeroot" \
4443
-I "mkfs.ext4" \
4544
-i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
4645
--nomdadmconf \

test/TEST-03-USR-MOUNT/test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ test_setup() {
5656
# We do it this way so that we do not risk trashing the host mdraid
5757
# devices, volume groups, encrypted partitions, etc.
5858
"$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
59-
-m "test-makeroot dash btrfs rootfs-block kernel-modules" \
60-
-d "piix ide-gd_mod ata_piix btrfs sd_mod" \
59+
-m "test-makeroot" \
6160
-I "mkfs.btrfs" \
6261
-i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
6362
--nomdadmconf \

test/TEST-04-FULL-SYSTEMD/test.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@ EOF
117117
# We do it this way so that we do not risk trashing the host mdraid
118118
# devices, volume groups, encrypted partitions, etc.
119119
"$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
120-
-m "test-makeroot bash btrfs rootfs-block kernel-modules qemu" \
121-
-d "piix ide-gd_mod ata_piix btrfs sd_mod" \
122-
-I "mkfs.btrfs btrfs sync" \
120+
-m "test-makeroot bash btrfs" \
121+
-I "mkfs.btrfs" \
123122
-i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
124123
--nomdadmconf \
125124
--nohardlink \

test/TEST-16-DMSQUASH/test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ test_setup() {
7171
# We do it this way so that we do not risk trashing the host mdraid
7272
# devices, volume groups, encrypted partitions, etc.
7373
"$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
74-
--modules "test-makeroot rootfs-block qemu" \
75-
--drivers "ext4 sd_mod" \
74+
--modules "test-makeroot" \
7675
--install "sfdisk mkfs.ext4 mksquashfs" \
7776
--include ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
7877
--no-hostonly --no-hostonly-cmdline --no-early-microcode --nofscks --nomdadmconf --nohardlink --nostrip \

0 commit comments

Comments
 (0)