mirror of
https://abf.rosa.ru/djam/livecd-tools.git
synced 2025-02-23 15:42:58 +00:00

Before this commit, livecd-tools used "drivers+=" in the dracut configuration file which can be used when creating the initrd for the Live images. As a result, the default set of drivers dracut knows about was not included into the initrd, only the specified ones were. Broken ISO images are a likely result of that. livecd-tools was patched to use "add_drivers+=" instead. Note that not all (if any) build scripts for the rosa2016.1 ISOs use the dracut config generated by livecd-tools, so this fix is not that important. Still, worth applying to simplify future maintenance.
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From 11877835aeb59e90e77edea99a4382f15c88cf35 Mon Sep 17 00:00:00 2001
|
|
From: "Brian C. Lane" <bcl@redhat.com>
|
|
Date: Tue, 13 Oct 2015 11:19:13 -0700
|
|
Subject: [PATCH] Use add_drivers for dracut config (#1192030)
|
|
|
|
Writing drivers+= to the dracut config ONLY installs those drivers. This
|
|
switches to use add_drivers+= so that dracut will pick up the usual set
|
|
of drivers and ADD the ones we select.
|
|
|
|
Resolves: rhbz#1192030
|
|
---
|
|
imgcreate/live.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/imgcreate/live.py b/imgcreate/live.py
|
|
index 25bc9e0..bd780b5 100755
|
|
--- a/imgcreate/live.py
|
|
+++ b/imgcreate/live.py
|
|
@@ -304,7 +304,7 @@ class LiveImageCreatorBase(LoopImageCreator):
|
|
makedirs(os.path.dirname(path))
|
|
f = open(path, "a")
|
|
f.write('filesystems+="' + self.__extra_filesystems() + ' "\n')
|
|
- f.write('drivers+="' + self.__extra_drivers() + ' "\n')
|
|
+ f.write('add_drivers+="' + self.__extra_drivers() + ' "\n')
|
|
f.write('add_dracutmodules+=" dmsquash-live pollcdrom "\n')
|
|
f.write('hostonly="no"\n')
|
|
f.write('dracut_rescue_image="no"\n')
|
|
--
|
|
2.7.3
|
|
|