From 4acff9ff076d5640c5e877d896e00417f1b61eb9 Mon Sep 17 00:00:00 2001 From: Marcus Ofenhed Date: Fri, 10 Jan 2025 10:09:11 +0100 Subject: [PATCH] Make the qubes-pciback module omittable --- dracut/dracut.conf.d/30-qubes.conf | 5 ----- dracut/modules.d/90qubes-pciback/module-setup.sh | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dracut/dracut.conf.d/30-qubes.conf b/dracut/dracut.conf.d/30-qubes.conf index 78c60962..f5024414 100644 --- a/dracut/dracut.conf.d/30-qubes.conf +++ b/dracut/dracut.conf.d/30-qubes.conf @@ -7,11 +7,6 @@ add_dracutmodules+=" extra-modules " # pciback kernel module. omit_dracutmodules+=" network kernel-network-modules " -# This is to include Qubes-specific dracut module that takes care of -# detecting and hiding all networking devices at boot time -# so that Dom0 doesn't load drivers for them... -add_dracutmodules+=" qubes-pciback " - # reduced syslog verbosity avoids lsinitrd call - this avoids 'cat: Broken # pipe' confusing message, but also makes dracut call faster. sysloglvl=4 diff --git a/dracut/modules.d/90qubes-pciback/module-setup.sh b/dracut/modules.d/90qubes-pciback/module-setup.sh index 2e32edf9..0c30232a 100755 --- a/dracut/modules.d/90qubes-pciback/module-setup.sh +++ b/dracut/modules.d/90qubes-pciback/module-setup.sh @@ -1,4 +1,11 @@ #!/bin/bash +# This is a Qubes-specific dracut module that takes care of detecting and +# hiding all networking devices (and optionally USB devices) at boot time so +# that Dom0 doesn't load drivers for them... + +check() { + return 0 +} install () { inst_hook cmdline 02 "$moddir/qubes-pciback.sh"