Minor fixes to archlinux build
This commit is contained in:
parent
ccc44fe093
commit
1e9b01d317
@ -34,8 +34,11 @@ if [ "$VERBOSE" == "1" ]; then
|
||||
fi
|
||||
|
||||
function cleanup() {
|
||||
if grep -q " $PWD/mnt/proc " /proc/mounts; then
|
||||
umount mnt/proc
|
||||
fi
|
||||
if grep -q " $PWD/mnt " /proc/mounts; then
|
||||
umount mnt/proc mnt
|
||||
umount mnt
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ mount $CACHEDIR/root-image.fs mnt_archlinux_dvd
|
||||
|
||||
echo "--> Starting cleanup actions"
|
||||
# Remove unused packages and their dependencies (make dependencies)
|
||||
cleanuppkgs=`./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman -Qdt | cut -d " " -f 1`
|
||||
cleanuppkgs=`./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman -Qdt | grep -v kernel | cut -d " " -f 1`
|
||||
echo "--> Packages that can be cleaned up: $cleanuppkgs"
|
||||
if [ -n "$cleanuppkgs" ] ; then
|
||||
./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Rsc $cleanuppkgs
|
||||
|
Loading…
Reference in New Issue
Block a user