mirror of
https://abf.rosa.ru/djam/livecd-tools.git
synced 2025-02-23 23:52:58 +00:00
37 lines
1.6 KiB
Diff
37 lines
1.6 KiB
Diff
From 318cd4e23d9941f2f7a4cb57f2f9880dd71bb56f Mon Sep 17 00:00:00 2001
|
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
Date: Thu, 28 May 2020 13:45:53 +0300
|
|
Subject: [PATCH 02/12] Add livenet and anaconda initrd modules
|
|
|
|
We need livenet to be able to fetch squashfs images in PXE boots
|
|
We need Anaconda module for fully functional Anaconda in similar use cases
|
|
Anaconda depdends from livenet, but let's just be sure that livenet is in initrd.
|
|
|
|
Add network-legacy because:
|
|
* livenet pulls either network-manager or network-legacy
|
|
* network-manager is default
|
|
* but, if network-legacy is defined, network-manager is not pulled
|
|
* currently DHCP fails with NetworkManager+dhclient:
|
|
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/575
|
|
* we need dhclient outside of initrd in NetworkManager due to it working better than internal DHCP client
|
|
* so run dhclient directly for now via network-legacy
|
|
---
|
|
imgcreate/live.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/imgcreate/live.py b/imgcreate/live.py
|
|
index 5d20aca..2cb6617 100644
|
|
--- a/imgcreate/live.py
|
|
+++ b/imgcreate/live.py
|
|
@@ -297,7 +297,7 @@ class LiveImageCreatorBase(LoopImageCreator):
|
|
f = open(path, "a")
|
|
f.write('filesystems+="' + self.__extra_filesystems() + ' "\n')
|
|
f.write('add_drivers+="' + self.__extra_drivers() + ' "\n')
|
|
- f.write('add_dracutmodules+=" dmsquash-live pollcdrom "\n')
|
|
+ f.write('add_dracutmodules+=" dmsquash-live pollcdrom livenet network-legacy anaconda "\n')
|
|
f.write('hostonly="no"\n')
|
|
f.write('dracut_rescue_image="no"\n')
|
|
f.close()
|
|
--
|
|
2.31.1
|
|
|