qubes-linux-utils/dracut/full-dmroot/module-setup.sh
Marek Marczykowski-Górecki 42469fdbe4
dracut: fix qubes-vm module dependencies
It needs 'dm' for 'dmsetup' utility. Additionally fix check - qubesdb
path starts with '/'.

QubesOS/qubes-issues#1354
2015-11-08 03:44:46 +01:00

22 lines
333 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-udev 90 $moddir/qubes_cow_setup.sh
inst_multiple \
sfdisk \
mkswap
}