qubes-linux-utils/dracut/full-dmroot/module-setup.sh
Marek Marczykowski-Górecki 5428ce06ee
initramfs: move qubes_cow_setup hook to pre-trigger
This hook require new device nodes to appear in /dev. If devtmpfs is
used, it's not a problem ("simple" initramfs case), but otherwise udevd
is needed - and it isn't running in pre-udev hook yet.

QubesOS/qubes-issues#2577

(cherry picked from commit 5c7c54adab)
2017-09-24 21:16:23 +02:00

22 lines
336 B
Bash

#!/bin/bash
check() {
if xenstore-read qubes-vm-type &>/dev/null || qubesdb-read /qubes-vm-type &>/dev/null; then
return 0
else
return 255
fi
}
depends() {
echo dm
return 0
}
install() {
inst_hook pre-trigger 90 $moddir/qubes_cow_setup.sh
inst_multiple \
sfdisk \
mkswap
}