Accepting request 959493 from devel:kubic:ignition

OBS-URL: https://build.opensuse.org/request/show/959493
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ignition?expand=0&rev=30
This commit is contained in:
Dominique Leuenberger 2022-03-04 19:17:08 +00:00 committed by Git OBS Bridge
commit b4dff7eb92
4 changed files with 18 additions and 6 deletions

View File

@ -15,7 +15,7 @@ Before=ignition-fetch.service
# See hack in coreos-enable-network, as well as coreos-copy-firstboot-network.service; # See hack in coreos-enable-network, as well as coreos-copy-firstboot-network.service;
# adapted for SUSE / wicked use # adapted for SUSE / wicked use
After=dracut-cmdline.service After=dracut-cmdline.service
Before=dracut-initqueue.service Before=dracut-initqueue.service nm-initrd.service
[Service] [Service]
Type=oneshot Type=oneshot

View File

@ -5,8 +5,14 @@
if [ -f /run/ignition/neednet ] && ! getargbool 0 'rd.neednet'; then if [ -f /run/ignition/neednet ] && ! getargbool 0 'rd.neednet'; then
echo "rd.neednet=1" > /etc/cmdline.d/40-ignition-neednet.conf echo "rd.neednet=1" > /etc/cmdline.d/40-ignition-neednet.conf
# Re-trigger generation of network rules # Re-trigger generation of network rules and apply them
if [ -e /lib/dracut/hooks/pre-udev/60-net-genrules.sh ]; then
# Wicked
. /lib/dracut/hooks/pre-udev/60-net-genrules.sh . /lib/dracut/hooks/pre-udev/60-net-genrules.sh
udevadm control --reload udevadm control --reload
udevadm trigger --subsystem-match net --action add udevadm trigger --subsystem-match net --action add
else
# NetworkManager
. /usr/lib/dracut/hooks/cmdline/99-nm-config.sh
fi
fi fi

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 4 10:23:10 UTC 2022 - Fabian Vogt <fvogt@suse.com>
- Add support for NetworkManager in dracut:
* ignition-enable-network.service, ignition-enable-network.sh
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 01 09:36:14 UTC 2021 - iforster@suse.com Wed Dec 01 09:36:14 UTC 2021 - iforster@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package ignition # spec file for package ignition
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed