Signed-off-by: Kairui Song <kasong@redhat.com>
# called by dracut
depends() {
echo -n "kernel-network-modules "
+
+ is_qemu_virtualized && echo -n "qemu-net "
+
if ! dracut_module_included "network-legacy" && [ -x "$dracutsysrootdir/usr/libexec/nm-initrd-generator" ] ; then
echo "network-manager"
else
# called by dracut
check() {
- if [[ $hostonly ]] || [[ $mount_needs ]]; then
+ if [[ $hostonly ]]; then
+ return 255
+ fi
+
+ if [[ $mount_needs ]]; then
is_qemu_virtualized && return 0
return 255
fi
+
return 0
}