From 1dda003deb5212235be3400bee1fb144190105b2 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 19 Feb 2013 13:23:32 +0100 Subject: tried to clean up installation --- archauto.sh | 3 ++- clean.sh | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 clean.sh diff --git a/archauto.sh b/archauto.sh index ce87dd1..9ef3f0b 100755 --- a/archauto.sh +++ b/archauto.sh @@ -37,7 +37,8 @@ mount ${INSTALL_DRIVE}${PARTITION_ROOT} ${MOUNT_PATH} export http_proxy=http://192.168.1.12:3128 -pacstrap ${MOUNT_PATH} base base-devel +#pacstrap ${MOUNT_PATH} base base-devel +pacstrap ${MOUNT_PATH} base arch-chroot /mnt pacman --noconfirm -S grub-bios arch-chroot /mnt grub-install --target=i386-pc --recheck ${INSTALL_DRIVE} diff --git a/clean.sh b/clean.sh new file mode 100644 index 0000000..b77cf1f --- /dev/null +++ b/clean.sh @@ -0,0 +1,25 @@ +# pacstrap ${MOUNT_PATH} base +# leaves us with 111 packages, 715 MB + +# 130M package cache, not needed, /var/cache/pacman/pkg/ +pacman --noconfirm -Scc + +# note, those things may be needed, I personally don't need them. +pacman -Rs \ + man-pages libpipeline groff man-db \ + jfsutils reiserfsprogs xfsprogs \ + cryptsetup lvm2 + +# TODOS: + +# big dirs +# +# locales, we don't need them on a server +# 48208 ./locale +# problematic, as we remove files belonging to a package +# +# non-modular compiler with only drivers/firmware needed could be an +# idea here: +# 49240 ./usr/lib/modules/3.7.9-1-ARCH +# 33620 ./usr/lib/modules/3.7.9-1-ARCH/kernel/drivers +# 47184 ./usr/lib/firmware -- cgit v1.2.3-54-g00ecf