SHA256
1
0
forked from pool/biosdevname

Accepting request 182997 from Base:System

- Update mkinitrd helper to look for rules in /lib and /usr/lib (bnc#820216) (forwarded request 182949 from olh)

OBS-URL: https://build.opensuse.org/request/show/182997
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/biosdevname?expand=0&rev=20
This commit is contained in:
Stephan Kulow 2013-07-16 05:32:53 +00:00 committed by Git OBS Bridge
commit 33333a292c
2 changed files with 16 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 12 19:33:10 CEST 2013 - ohering@suse.de
- Update mkinitrd helper to look for rules in /lib and /usr/lib (bnc#820216)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 22 12:08:57 UTC 2013 - idonmez@suse.com Mon Apr 22 12:08:57 UTC 2013 - idonmez@suse.com

View File

@ -19,15 +19,19 @@
#%provides: biosdevname #%provides: biosdevname
# #
# copy biosdevname binary # the binary location must match location used in udev rule
cp_bin /sbin/biosdevname "${tmp_mnt}/sbin/biosdevname" cp_bin /sbin/biosdevname "${tmp_mnt}/sbin/biosdevname"
#
# copy udev rules
if ! [ -d "${tmp_mnt}/etc/udev/rules.d" ] ; then
mkdir -p "${tmp_mnt}/etc/udev/rules.d" mkdir -p "${tmp_mnt}/etc/udev/rules.d"
for i in \
/usr/lib/udev/rules.d/*-biosdevname.rules \
/lib/udev/rules.d/*-biosdevname.rules
do
if test -f "$i"
then
cp --remove-destination "$i" "${tmp_mnt}/etc/udev/rules.d"
fi fi
cp /lib/udev/rules.d/*-biosdevname.rules "${tmp_mnt}/etc/udev/rules.d" done
# vim: set sw=4 ts=4 et: # vim: set sw=4 ts=4 et: