dracut: fix qubes-vm module dependencies
It needs 'dm' for 'dmsetup' utility. Additionally fix check - qubesdb path starts with '/'. QubesOS/qubes-issues#1354
This commit is contained in:
parent
882052eca0
commit
42469fdbe4
@ -1,13 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
if xenstore-read qubes-vm-type &>/dev/null || qubesdb-read qubes-vm-type &>/dev/null; then
|
if xenstore-read qubes-vm-type &>/dev/null || qubesdb-read /qubes-vm-type &>/dev/null; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return 255
|
return 255
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
depends() {
|
||||||
|
echo dm
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
inst_hook pre-udev 90 $moddir/qubes_cow_setup.sh
|
inst_hook pre-udev 90 $moddir/qubes_cow_setup.sh
|
||||||
inst_multiple \
|
inst_multiple \
|
||||||
|
Loading…
Reference in New Issue
Block a user