- 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:
parent
75c2b43fcc
commit
5ee9189841
@ -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>
|
Thu May 4 15:20:49 UTC 2023 - Franck Bui <fbui@suse.com>
|
||||||
|
|
||||||
|
12
systemd.spec
12
systemd.spec
@ -1084,22 +1084,10 @@ fi
|
|||||||
%post -n udev%{?mini}
|
%post -n udev%{?mini}
|
||||||
%regenerate_initrd_post
|
%regenerate_initrd_post
|
||||||
%udev_hwdb_update
|
%udev_hwdb_update
|
||||||
|
|
||||||
%tmpfiles_create systemd-pstore.conf
|
%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 remote-cryptsetup.target
|
||||||
%systemd_post systemd-pstore.service
|
%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}
|
%preun -n udev%{?mini}
|
||||||
%systemd_preun systemd-udevd.service systemd-udevd-{control,kernel}.socket
|
%systemd_preun systemd-udevd.service systemd-udevd-{control,kernel}.socket
|
||||||
%systemd_preun systemd-pstore.service
|
%systemd_preun systemd-pstore.service
|
||||||
|
Loading…
Reference in New Issue
Block a user