diff --git a/0003-Add-livenet-and-anaconda-initrd-modules.patch b/0003-Add-livenet-and-anaconda-initrd-modules.patch index 53f99f0..fa7f463 100644 --- a/0003-Add-livenet-and-anaconda-initrd-modules.patch +++ b/0003-Add-livenet-and-anaconda-initrd-modules.patch @@ -5,7 +5,16 @@ Subject: [PATCH] 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 +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(-) @@ -19,7 +28,7 @@ index 9a57884..e9ca5d6 100644 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 anaconda "\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() diff --git a/livecd-tools.spec b/livecd-tools.spec index 65a21b9..8144a57 100644 --- a/livecd-tools.spec +++ b/livecd-tools.spec @@ -10,7 +10,7 @@ Name: livecd-tools Summary: Tools for building live CDs Epoch: 1 Version: 27.1 -Release: 21 +Release: 22 License: GPLv2 Group: System/Base URL: https://github.com/livecd-tools/livecd-tools