- Drop an old fix for the persistent net rules (only needed on SLE). Factory

(fortunately) dropped the persistent net rule generator long time ago.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1389
This commit is contained in:
Franck Bui 2023-05-09 12:43:50 +00:00 committed by Git OBS Bridge
parent 75c2b43fcc
commit 5ee9189841
2 changed files with 6 additions and 12 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 9 12:37:31 UTC 2023 - Franck Bui <fbui@suse.com>
- Drop an old fix for the persistent net rules (only needed on SLE). Factory
(fortunately) dropped the persistent net rule generator long time ago.
-------------------------------------------------------------------
Thu May 4 15:20:49 UTC 2023 - Franck Bui <fbui@suse.com>

View File

@ -1084,22 +1084,10 @@ fi
%post -n udev%{?mini}
%regenerate_initrd_post
%udev_hwdb_update
%tmpfiles_create systemd-pstore.conf
# Units listed below can be enabled at installation accoding to their preset
# setting.
%systemd_post remote-cryptsetup.target
%systemd_post systemd-pstore.service
# add KERNEL name match to existing persistent net rules
sed -ri '/KERNEL/ ! { s/NAME="(eth|wlan|ath)([0-9]+)"/KERNEL=="\1*", NAME="\1\2"/}' \
/etc/udev/rules.d/70-persistent-net.rules 2>/dev/null || :
# cleanup old stuff
rm -f /etc/sysconfig/udev
rm -f /etc/udev/rules.d/{20,55,65}-cdrom.rules
%preun -n udev%{?mini}
%systemd_preun systemd-udevd.service systemd-udevd-{control,kernel}.socket
%systemd_preun systemd-pstore.service