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'
|
# Template file for 'xbps-base-files'
|
||||||
pkgname=xbps-base-files
|
pkgname=xbps-base-files
|
||||||
version=0.35
|
version=0.36
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="xbps base system files"
|
short_desc="xbps base system files"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
|
@ -25,22 +25,20 @@ targets)
|
||||||
run)
|
run)
|
||||||
[ ! -x ${update_initramfs} ] && exit 0
|
[ ! -x ${update_initramfs} ] && exit 0
|
||||||
|
|
||||||
initramfs_args="update-initramfs"
|
|
||||||
|
|
||||||
if [ "$PKGNAME" = "kernel" ]; then
|
if [ "$PKGNAME" = "kernel" ]; then
|
||||||
if [ "$TARGET" = "post-remove" ]; then
|
if [ "$TARGET" = "post-remove" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if [ ! -f var/lib/initramfs-tools/${VERSION} ]; then
|
if [ ! -f var/lib/initramfs-tools/${VERSION} ]; then
|
||||||
# Create new initramfs
|
# Create new initramfs
|
||||||
initramfs_args="-c -t -k ${VERSION}"
|
initramfs_args="-B -c -t -k ${VERSION}"
|
||||||
else
|
else
|
||||||
# Update existing initramfs
|
# Update existing initramfs
|
||||||
initramfs_args="-u -t -k ${VERSION}"
|
initramfs_args="-B -u -t -k ${VERSION}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Update initramfs for all kernels
|
# Update initramfs for all kernels
|
||||||
initramfs_args="-u -t -k all"
|
initramfs_args="-B -u -t -k all"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e /proc/filesystems ]; then
|
if [ ! -e /proc/filesystems ]; then
|
||||||
|
@ -55,6 +53,10 @@ run)
|
||||||
|
|
||||||
${update_initramfs} ${initramfs_args}
|
${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
|
if [ -n "$proc_mounted" ]; then
|
||||||
umount /proc
|
umount /proc
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue