From 7e1b2a24f3e9df3b8804f6d7a9b146aec9522894 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Mon, 19 Jun 2023 22:34:08 +0000 Subject: [PATCH] fix: use --no-hostonly only on opensuse 12 --- distro/opensuse/opensuse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distro/opensuse/opensuse.go b/distro/opensuse/opensuse.go index 8926bd0..bb395f8 100644 --- a/distro/opensuse/opensuse.go +++ b/distro/opensuse/opensuse.go @@ -254,14 +254,14 @@ func (suse OpenSUSE) Install(version string, headers bool) (err error) { modules := "ata_piix libata e1000 ext4 sd_mod rfkill af_packet" - format := "dracut --no-hostonly " + format := "dracut " if strings.HasPrefix(suse.release, "13") || strings.HasPrefix(suse.release, "12") { format += "-a workaround " } if strings.HasPrefix(suse.release, "12") { - format += "--add-drivers '%s' " + format += "--no-hostonly --add-drivers '%s' " } else { format += "--force-drivers '%s' " }