Accepting request 959824 from home:favogt:combustion
- Support the dracut network-manager module - Remove /var/lib/YaST2/reconfig_system on successful runs OBS-URL: https://build.opensuse.org/request/show/959824 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/combustion?expand=0&rev=24
This commit is contained in:
parent
be0df27e3e
commit
08878d84e8
17
combustion
17
combustion
@ -47,12 +47,19 @@ if [ "${1-}" = "--prepare" ]; then
|
||||
&& grep -qE '^# combustion:(.*)\<network\>' "${config_mount}/combustion/script"; then
|
||||
sh -s <<EOF
|
||||
. /lib/dracut-lib.sh
|
||||
# Set rd.neednet if not already done and reevaluate it (module-specific)
|
||||
getargbool 0 'rd.neednet' && exit 0
|
||||
echo rd.neednet=1 > /etc/cmdline.d/40-combustion-neednet.conf
|
||||
# Re-trigger generation of network rules and apply them
|
||||
. /lib/dracut/hooks/pre-udev/60-net-genrules.sh
|
||||
udevadm control --reload
|
||||
udevadm trigger --subsystem-match net --action add
|
||||
if [ -e /lib/dracut/hooks/pre-udev/60-net-genrules.sh ]; then
|
||||
# Wicked
|
||||
. /lib/dracut/hooks/pre-udev/60-net-genrules.sh
|
||||
# Re-trigger generation of network rules and apply them
|
||||
udevadm control --reload
|
||||
udevadm trigger --subsystem-match net --action add
|
||||
else
|
||||
# NetworkManager
|
||||
. /usr/lib/dracut/hooks/cmdline/99-nm-config.sh
|
||||
fi
|
||||
EOF
|
||||
fi
|
||||
|
||||
@ -180,4 +187,6 @@ else
|
||||
chroot /sysroot snapper --no-dbus create -d "After combustion configuration" || :
|
||||
fi
|
||||
|
||||
rm -f /sysroot/var/lib/YaST2/reconfig_system
|
||||
|
||||
exit 0
|
||||
|
@ -16,8 +16,9 @@ After=dev-combustion-config.device
|
||||
# device
|
||||
After=ignition-setup-user.service
|
||||
|
||||
# This reconfigures networking, which runs during the initqueue
|
||||
Before=dracut-initqueue.service
|
||||
# This reconfigures networking, which runs during the initqueue (wicked)
|
||||
# or has its own service (NM)
|
||||
Before=dracut-initqueue.service nm-initrd.service
|
||||
|
||||
Conflicts=initrd-switch-root.target umount.target
|
||||
Conflicts=dracut-emergency.service emergency.service emergency.target
|
||||
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 3 11:58:07 UTC 2022 - Fabian Vogt <fvogt@suse.com>
|
||||
|
||||
- Support the dracut network-manager module
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 24 11:44:57 UTC 2022 - Fabian Vogt <fvogt@suse.com>
|
||||
|
||||
- Remove /var/lib/YaST2/reconfig_system on successful runs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 24 13:10:37 UTC 2021 - Dimitar Zahariev <mitko@tuionui.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package combustion
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
|
Loading…
Reference in New Issue
Block a user