posttrans: check for kernel image existence before making initrd (to fix chroot makedist installation) [release 044.20161015git-2mamba;Mon Apr 10 2017]

This commit is contained in:
Silvan Calarco 2024-01-05 21:56:17 +01:00
parent f6e7acdc12
commit fa5b90a648

View File

@ -1,6 +1,6 @@
Name: dracut Name: dracut
Version: 044.20161015git Version: 044.20161015git
Release: 1mamba Release: 2mamba
Summary: Generic, modular initramfs generation tool that can be used across various distributions Summary: Generic, modular initramfs generation tool that can be used across various distributions
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
Vendor: openmamba Vendor: openmamba
@ -149,10 +149,12 @@ ln -s ../bin/mkinitrd %{buildroot}%{_sbindir}/mkinitrd
%posttrans %posttrans
if [ $1 -ge 1 ]; then if [ $1 -ge 1 ]; then
KVER=`uname -r` if [ -e /boot/vmlinuz-$KVER ]; then
INITRAMFS=/boot/initramfs-$KVER.img KVER=`uname -r`
[ -e $INITRAMFS -a ${_sysconfdir}/dracut.conf -nt $INITRAMFS ] || continue INITRAMFS=/boot/initramfs-$KVER.img
mkinitrd $INITRAMFS $KVER -f -q [ -e $INITRAMFS -a ${_sysconfdir}/dracut.conf -nt $INITRAMFS ] || continue
mkinitrd $INITRAMFS $KVER -f -q
fi
fi fi
: :
@ -365,6 +367,9 @@ fi
#%doc NEWS README README.generic README.kernel README.modules TODO #%doc NEWS README README.generic README.kernel README.modules TODO
%changelog %changelog
* Mon Apr 10 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 044.20161015git-2mamba
- posttrans: check for kernel image existence before making initrd (to fix chroot makedist installation)
* Sat Oct 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 044.20161015git-1mamba * Sat Oct 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 044.20161015git-1mamba
- update to 044.20161015git - update to 044.20161015git
- reapply bash 4.4 patch part to dracut.sh - reapply bash 4.4 patch part to dracut.sh