xbps-base-files: update to 0.36.
The initramfs-tools trigger now runs 'update-initramfs' with -B and if grub-mkconfig exists runs it before exiting.
This commit is contained in:
@@ -25,22 +25,20 @@ targets)
|
||||
run)
|
||||
[ ! -x ${update_initramfs} ] && exit 0
|
||||
|
||||
initramfs_args="update-initramfs"
|
||||
|
||||
if [ "$PKGNAME" = "kernel" ]; then
|
||||
if [ "$TARGET" = "post-remove" ]; then
|
||||
exit 0
|
||||
fi
|
||||
if [ ! -f var/lib/initramfs-tools/${VERSION} ]; then
|
||||
# Create new initramfs
|
||||
initramfs_args="-c -t -k ${VERSION}"
|
||||
initramfs_args="-B -c -t -k ${VERSION}"
|
||||
else
|
||||
# Update existing initramfs
|
||||
initramfs_args="-u -t -k ${VERSION}"
|
||||
initramfs_args="-B -u -t -k ${VERSION}"
|
||||
fi
|
||||
else
|
||||
# Update initramfs for all kernels
|
||||
initramfs_args="-u -t -k all"
|
||||
initramfs_args="-B -u -t -k all"
|
||||
fi
|
||||
|
||||
if [ ! -e /proc/filesystems ]; then
|
||||
@@ -55,6 +53,10 @@ run)
|
||||
|
||||
${update_initramfs} ${initramfs_args}
|
||||
|
||||
if [ -x usr/sbin/grub-mkconfig ]; then
|
||||
usr/sbin/grub-mkconfig -o boot/grub/grub.cfg
|
||||
fi
|
||||
|
||||
if [ -n "$proc_mounted" ]; then
|
||||
umount /proc
|
||||
fi
|
||||
|
Reference in New Issue
Block a user