Accepting request 959827 from devel:kubic:ignition

OBS-URL: https://build.opensuse.org/request/show/959827
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/combustion?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2022-03-07 16:45:34 +00:00 committed by Git OBS Bridge
commit 1c92231032
4 changed files with 27 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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