Browse Source

Get rid of dependency on e2mkdir

If we install copy-root as a mount hook, it will be run after the root fs
is mounted and it will make hte proc directory, allowing root filesystem
creation to finish without error.
master
Victor Lowther 16 years ago
parent
commit
a0c2cee947
  1. 1
      test/TEST-10-RAID/create-root.sh
  2. 5
      test/TEST-10-RAID/test.sh

1
test/TEST-10-RAID/create-root.sh

@ -16,4 +16,3 @@ lvm lvcreate -l 100%FREE -n root dracut @@ -16,4 +16,3 @@ lvm lvcreate -l 100%FREE -n root dracut
udevadm settle --timeout=4
[ -b /dev/dracut/root ] || emergency_shell
mke2fs /dev/dracut/root
e2mkdir /dev/dracut/root:/proc

5
test/TEST-10-RAID/test.sh

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
#!/bin/bash

TEST_DESCRIPTION="root filesystem on an encrypted LVM PV"

test_run() {
@ -32,9 +31,9 @@ test_setup() { @@ -32,9 +31,9 @@ test_setup() {
(
initdir=overlay
. $basedir/dracut-functions
dracut_install sfdisk mke2fs poweroff cp umount e2mkdir
dracut_install sfdisk mke2fs poweroff cp umount
inst_simple ./halt.sh /pre-pivot/02halt.sh
inst_simple ./copy-root.sh /pre-pivot/01copy-root.sh
inst_simple ./copy-root.sh /mount/01copy-root.sh
inst_simple ./create-root.sh /pre-mount/01create-root.sh
)

Loading…
Cancel
Save