make qemu and qemu-net a default module in non-hostonly mode

master
Harald Hoyer 2017-10-25 12:53:47 +02:00
parent 1751bacda1
commit 21789cbb0a
2 changed files with 39 additions and 31 deletions

View File

@ -2,6 +2,7 @@

# called by dracut
check() {
if [[ $hostonly ]] || [[ $mount_needs ]]; then
if type -P systemd-detect-virt >/dev/null 2>&1; then
vm=$(systemd-detect-virt --vm >/dev/null 2>&1)
(($? != 0)) && return 255
@ -18,6 +19,8 @@ check() {
done

return 255
fi
return 0
}

# called by dracut

View File

@ -2,6 +2,7 @@

# called by dracut
check() {
if [[ $hostonly ]] || [[ $mount_needs ]]; then
if type -P systemd-detect-virt >/dev/null 2>&1; then
vm=$(systemd-detect-virt --vm 2>/dev/null)
(($? != 0)) && return 255
@ -17,7 +18,11 @@ check() {
[[ "$vendor" == "Red Hat" ]] && return 0
[[ "$vendor" == "Bochs" ]] && return 0
done

return 255
fi

return 0
}

# called by dracut