forked from pool/systemd
Accepting request 333474 from home:jengelh:d2
- Avoid "file not found /etc/udev/rules.d/70-persistent-net.rules" OBS-URL: https://build.opensuse.org/request/show/333474 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=904
This commit is contained in:
parent
e2327986a6
commit
6bda2878e3
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 23 14:19:32 UTC 2015 - jengelh@inai.de
|
||||
|
||||
- Avoid "file not found /etc/udev/rules.d/70-persistent-net.rules"
|
||||
waring occurring in %post
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 23 12:41:19 UTC 2015 - werner@suse.de
|
||||
|
||||
|
@ -1021,9 +1021,11 @@ fi
|
||||
|
||||
%post -n udev%{?mini}
|
||||
/usr/bin/udevadm hwdb --update || :
|
||||
# add KERNEL name match to existing persistent net rules
|
||||
sed -ri '/KERNEL/ ! { s/NAME="(eth|wlan|ath)([0-9]+)"/KERNEL=="\1*", NAME="\1\2"/}' \
|
||||
if [ -f /etc/udev/rules.d/70-persistent-net.rules ]; then
|
||||
# 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 || :
|
||||
fi
|
||||
# cleanup old stuff
|
||||
rm -f /etc/sysconfig/udev
|
||||
rm -f /etc/udev/rules.d/20-cdrom.rules
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 23 14:19:32 UTC 2015 - jengelh@inai.de
|
||||
|
||||
- Avoid "file not found /etc/udev/rules.d/70-persistent-net.rules"
|
||||
waring occurring in %post
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 23 12:41:19 UTC 2015 - werner@suse.de
|
||||
|
||||
|
@ -1016,9 +1016,11 @@ fi
|
||||
|
||||
%post -n udev%{?mini}
|
||||
/usr/bin/udevadm hwdb --update || :
|
||||
# add KERNEL name match to existing persistent net rules
|
||||
sed -ri '/KERNEL/ ! { s/NAME="(eth|wlan|ath)([0-9]+)"/KERNEL=="\1*", NAME="\1\2"/}' \
|
||||
if [ -f /etc/udev/rules.d/70-persistent-net.rules ]; then
|
||||
# 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 || :
|
||||
fi
|
||||
# cleanup old stuff
|
||||
rm -f /etc/sysconfig/udev
|
||||
rm -f /etc/udev/rules.d/20-cdrom.rules
|
||||
|
Loading…
Reference in New Issue
Block a user