SHA256
1
0
forked from pool/libguestfs

- Handle empty /lib/mkinitrd/scripts gracefully

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=299
This commit is contained in:
Olaf Hering 2014-07-08 10:53:33 +00:00 committed by Git OBS Bridge
parent 426301008d
commit 7ff4f2fa18
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 8 12:52:58 CEST 2014 - ohering@suse.de
- Handle empty /lib/mkinitrd/scripts gracefully
-------------------------------------------------------------------
Mon Jul 7 10:12:36 CEST 2014 - ohering@suse.de

View File

@ -677,7 +677,14 @@ cp -avL %{S:18} mkinitrd/scripts/boot-nfs.sh
cp -avL %{S:19} mkinitrd/scripts/setup-nfs.sh
cp -avL %{S:20} mkinitrd/scripts/setup-btrfs.sh
cp -avL %{S:21} mkinitrd/scripts/setup-btrfs.sh
cp -avb /lib/mkinitrd/scripts/* mkinitrd/scripts
for i in /lib/mkinitrd/scripts/*
do
if test -f "$i"
then
cp -avbt mkinitrd/scripts "$i"
break
fi
done
mkdir -vp mkinitrd/setup mkinitrd/boot
ln -sfvbn lib/mkinitrd/bin mkinitrd/bin
sed -i~ "s@^INITRD_PATH=/lib/mkinitrd@INITRD_PATH=$PWD/mkinitrd@" mkinitrd/sbin/mkinitrd