|
|
7887836 |
From 39371c289a3fd3e313322861b9d020fdc1ae9f82 Mon Sep 17 00:00:00 2001
|
|
|
7887836 |
From: Javier Martinez Canillas <javierm@redhat.com>
|
|
|
7887836 |
Date: Thu, 7 Mar 2019 00:02:39 +0100
|
|
|
7887836 |
Subject: [PATCH] payload: don't force host-only mode when executing dracut
|
|
|
7887836 |
|
|
|
7887836 |
When the initramfs are generated on kernel installs, dracuts default for
|
|
|
7887836 |
enabling or disabling host-only mode is used. But when recreating them
|
|
|
7887836 |
at the end of the installation, dracut is executed with host-only mode.
|
|
|
7887836 |
|
|
|
7887836 |
This means that host-only mode can't be disabled (i.e: by installing the
|
|
|
7887836 |
dracut-config-generic package) which is needed to create aarch64 images.
|
|
|
7887836 |
|
|
|
7887836 |
Also don't force the persistent policy to be by-uuid and use whatever is
|
|
|
7887836 |
the default, which is also the case when initrds are generated on kernel
|
|
|
7887836 |
package installs.
|
|
|
7887836 |
|
|
|
7887836 |
Resolves: rhbz#1686326
|
|
|
7887836 |
|
|
|
7887836 |
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
|
|
|
7887836 |
---
|
|
|
7887836 |
pyanaconda/payload/__init__.py | 3 +--
|
|
|
7887836 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
7887836 |
|
|
|
7887836 |
diff --git a/pyanaconda/payload/__init__.py b/pyanaconda/payload/__init__.py
|
|
|
7887836 |
index 892b5d852..225a23e4e 100644
|
|
|
7887836 |
--- a/pyanaconda/payload/__init__.py
|
|
|
7887836 |
+++ b/pyanaconda/payload/__init__.py
|
|
|
7887836 |
@@ -587,8 +587,7 @@ class Payload(metaclass=ABCMeta):
|
|
|
7887836 |
if use_dracut:
|
|
|
7887836 |
util.execInSysroot("depmod", ["-a", kernel])
|
|
|
7887836 |
util.execInSysroot("dracut",
|
|
|
7887836 |
- ["-H", "--persistent-policy", "by-uuid",
|
|
|
7887836 |
- "-f",
|
|
|
7887836 |
+ ["-f",
|
|
|
7887836 |
"/boot/initramfs-%s.img" % kernel,
|
|
|
7887836 |
kernel])
|
|
|
7887836 |
else:
|
|
|
7887836 |
--
|
|
|
7887836 |
2.20.1
|
|
|
7887836 |
|