archlinux: Missing packages for using archlinux as a NetVM

This commit is contained in:
Olivier Medoc 2013-04-26 09:44:06 +02:00 committed by Marek Marczykowski
parent 95252f246d
commit 07dde30ba2
2 changed files with 12 additions and 1 deletions

View File

@ -8,7 +8,15 @@ sudo mount $CACHEDIR/root-image.fs mnt_archlinux_dvd
echo "--> Starting cleanup actions"
# Remove unused packages and their dependencies (make dependencies)
cleanuppkgs=`sudo ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman -Qdt | cut -d " " -f 1`
sudo ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Rsc $cleanuppkgs
echo "--> Packages that can be cleaned up: $cleanuppkgs"
if [ -n "$cleanuppkgs" ] ; then
sudo ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Rsc $cleanuppkgs
fi
# Remove non required linux kernel
echo "--> Cleaning up linux kernel"
sudo ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Rsc linux
sudo ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -S linux-firmware
# Clean pacman cache
sudo ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Scc

View File

@ -13,3 +13,6 @@ ttf-freefont
wget
zsh
xfce4-terminal
networkmanager
network-manager-applet
linux-firmware