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:
parent
426301008d
commit
7ff4f2fa18
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user