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.
#!/bin/sh
-cp -a -t "$NEWROOT" /source/*
\ No newline at end of file
+cp -a -t "$NEWROOT" /source/*
udevadm settle --timeout=4
[ -b /dev/dracut/root ] || emergency_shell
mke2fs /dev/dracut/root
-e2mkdir /dev/dracut/root:/proc
#!/bin/bash
-
TEST_DESCRIPTION="root filesystem on an encrypted LVM PV"
test_run() {
(
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
)