base-files: vkpurge is not architecture specific

We have now aarch64 and armv7l kernels build from the same template as
the x86 kernels, those use preserve=yes and using vkpurge to remove old
kernels makes sense for them.

This fixes #6225.
This commit is contained in:
Duncaen 2017-04-20 18:40:05 +02:00
parent 984f5a391c
commit b38ca942ba
3 changed files with 5 additions and 11 deletions

View file

@ -97,12 +97,6 @@ remove_kernel()
fi fi
} }
ARCH=$(uname -m)
case "$ARCH" in
i686*|x86_64*);;
*) echo "vkpurge is x86 specific, exiting..."; exit 0;;
esac
if [ "$1" = "list" ]; then if [ "$1" = "list" ]; then
list_kernels list_kernels
elif [ "$1" = "rm" ]; then elif [ "$1" = "rm" ]; then

View file

@ -13,9 +13,8 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
command is used to properly remove old or unwanted kernels from an command is used to properly remove old or unwanted kernels from Void Linux
x86-based Void Linux system, by running the appropiate removal hooks systems, by running the appropiate removal hooks and doing the removal.
and doing the removal.
.Ss Justification .Ss Justification
.Xr xbps-install 1 .Xr xbps-install 1
will leave old kernels in place when the kernel package gets upgraded, and will leave old kernels in place when the kernel package gets upgraded, and
@ -59,4 +58,5 @@ The following command will delete the kernels with version 2.6.39_2 and 4.3.4_1
.Xr xbps-install 1 , .Xr xbps-install 1 ,
.Xr xbps-remove 1 .Xr xbps-remove 1
.Sh BUGS .Sh BUGS
There is no support as of yet for non-x86 platforms. There is no support as of yet for all kernels, specific series like rpi-kernel
are not supported

View file

@ -1,7 +1,7 @@
# Template file for 'base-files' # Template file for 'base-files'
pkgname=base-files pkgname=base-files
version=0.139 version=0.139
revision=6 revision=7
bootstrap=yes bootstrap=yes
depends="xbps-triggers" depends="xbps-triggers"
short_desc="Void Linux base system files" short_desc="Void Linux base system files"