Accepting request 140202 from home:rwooninck:CK-removal

Adapt mkinitrd scripts to new udev locataion

OBS-URL: https://build.opensuse.org/request/show/140202
OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=47
This commit is contained in:
Andreas Jaeger 2012-11-05 20:49:35 +00:00 committed by Git OBS Bridge
parent d8bbc14642
commit 3ee9f88207
3 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 5 12:08:26 UTC 2012 - hrvoje.senjan@gmail.com
- Adapt mkinitrd scripts to new udev locataion
-------------------------------------------------------------------
Sun Nov 4 02:31:00 UTC 2012 - crrodriguez@opensuse.org

View File

@ -31,10 +31,10 @@ if [ -x /sbin/dmsetup ]; then
# include dm block var from sysconfig
mkdir -p etc/sysconfig
grep DM_BLOCK /etc/sysconfig/kernel > etc/sysconfig/kernel
mkdir -p lib/udev/rules.d
cp /lib/udev/rules.d/10-dm.rules lib/udev/rules.d
cp /lib/udev/rules.d/13-dm-disk.rules lib/udev/rules.d
cp /lib/udev/rules.d/95-dm-notify.rules lib/udev/rules.d
mkdir -p usr/lib/udev/rules.d
cp usr/lib/udev/rules.d/10-dm.rules usr/lib/udev/rules.d
cp usr/lib/udev/rules.d/13-dm-disk.rules usrlib/udev/rules.d
cp usr/lib/udev/rules.d/95-dm-notify.rules usr/lib/udev/rules.d
save_var root_dm
save_var dm_modules
fi

View File

@ -40,10 +40,10 @@ if use_script lvm2; then
cp -a /etc/lvm/lvm.conf $tmp_mnt/etc/lvm/
cp -a /etc/sysconfig/lvm $tmp_mnt/etc/sysconfig/
# udev rule for lvm2
mkdir -p $tmp_mnt/lib/udev/rules.d
cp /lib/udev/rules.d/11-dm-lvm.rules $tmp_mnt/lib/udev/rules.d/
if [ -e /lib/udev/rules.d/64-lvm2.rules ]; then
cp /lib/udev/rules.d/64-lvm2.rules $tmp_mnt/lib/udev/rules.d/
mkdir -p $tmp_mnt/usr/lib/udev/rules.d
cp /usr/lib/udev/rules.d/11-dm-lvm.rules $tmp_mnt/usr/lib/udev/rules.d/
if [ -e /usr/lib/udev/rules.d/64-lvm2.rules ]; then
cp /usr/lib/udev/rules.d/64-lvm2.rules $tmp_mnt/usr/lib/udev/rules.d/
fi
fi