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:
parent
304cf3c9c2
commit
08d5783d7b
2 changed files with 8 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xbps-base-files'
|
||||
pkgname=xbps-base-files
|
||||
version=0.35
|
||||
version=0.36
|
||||
build_style=custom-install
|
||||
short_desc="xbps base system files"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue