SHA256
1
0
forked from pool/biosdevname

Accepting request 182949 from home:olh:branches:Base:System

- Update mkinitrd helper to look for rules in /lib and /usr/lib (bnc#820216)

OBS-URL: https://build.opensuse.org/request/show/182949
OBS-URL: https://build.opensuse.org/package/show/Base:System/biosdevname?expand=0&rev=17
This commit is contained in:
2013-07-13 20:41:21 +00:00
committed by Git OBS Bridge
parent ce7e3eeb79
commit 9627f6bcff
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

View File

@@ -19,15 +19,19 @@
#%provides: biosdevname
#
# copy biosdevname binary
# the binary location must match location used in udev rule
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"
fi
cp /lib/udev/rules.d/*-biosdevname.rules "${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
done
# vim: set sw=4 ts=4 et: