xbps-base-files: an improvement to previous commit.
Also update the initramfs of all kernels while removing a package != kernel. Bump to 0.24. --HG-- extra : convert_revision : 13bbba2d34c4ae6a0e678df6e1a1cc79fa7185a6
This commit is contained in:
parent
49430c3e66
commit
6dab476f7b
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xbps-base-files'
|
||||
pkgname=xbps-base-files
|
||||
version=0.23
|
||||
version=0.24
|
||||
build_style=custom-install
|
||||
short_desc="xbps base system files"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# installed kernel otherwise.
|
||||
#
|
||||
# Arguments: $1 = action [run/targets]
|
||||
# $2 = target [post-install]
|
||||
# $2 = target [post-install/post-remove]
|
||||
# $3 = pkgname
|
||||
# $4 = version
|
||||
#
|
||||
|
@ -18,15 +18,17 @@ update_initramfs=usr/sbin/update-initramfs
|
|||
|
||||
case "$ACTION" in
|
||||
targets)
|
||||
echo "post-install"
|
||||
echo "post-install post-remove"
|
||||
;;
|
||||
run)
|
||||
[ ! -x ${update_initramfs} ] && exit 0
|
||||
[ "$TARGET" != "post-install" ] && exit 1
|
||||
|
||||
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 -k ${VERSION}"
|
||||
|
|
Loading…
Reference in New Issue