don't create initramfs if kernel image isn't found (for chroot in makedist) [release 0.9.3.20160705git-2mamba;Tue Apr 18 2017]
This commit is contained in:
parent
7268b816f7
commit
5509798b08
@ -1,7 +1,7 @@
|
||||
Name: plymouth
|
||||
Epoch: 1
|
||||
Version: 0.9.3.20160705git
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Provides a graphical boot animation while the boot process happens in the background
|
||||
Group: System/Kernel and Hardware
|
||||
Vendor: openmamba
|
||||
@ -149,10 +149,12 @@ install -D -m0755 %{SOURCE1} %{buildroot}%{_prefix}/libexec/initrd-functions
|
||||
%posttrans
|
||||
KVER=`uname -r`
|
||||
INITRAMFS=/boot/initramfs-$KVER.img
|
||||
KERNEL=/boot/vmlinuz-$KVER
|
||||
[ -e $INITRAMFS -a /sbin/plymouthd -nt $INITRAMFS ] || continue
|
||||
[ -e $KERNEL -a -e /usr/bin/mkinitrd ] || continue
|
||||
mkinitrd $INITRAMFS $KVER -f -q
|
||||
if [ -e /boot/vmlinuz-$KVER ]; then
|
||||
KERNEL=/boot/vmlinuz-$KVER
|
||||
[ -e $INITRAMFS -a /sbin/plymouthd -nt $INITRAMFS ] || continue
|
||||
[ -e $KERNEL -a -e /usr/bin/mkinitrd ] || continue
|
||||
mkinitrd $INITRAMFS $KVER -f -q
|
||||
fi
|
||||
:
|
||||
|
||||
%clean
|
||||
@ -261,6 +263,9 @@ mkinitrd $INITRAMFS $KVER -f -q
|
||||
%{_datadir}/plymouth/themes/tribar/*
|
||||
|
||||
%changelog
|
||||
* Tue Apr 18 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.3.20160705git-2mamba
|
||||
- don't create initramfs if kernel image isn't found (for chroot in makedist)
|
||||
|
||||
* Tue Jul 05 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.3.20160705git-1mamba
|
||||
- update to 0.9.3.20160705git
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user