autoinst

scripts to make installation of custom debian easier and more automated
git clone git://deadbeef.fr/autoinst.git
Log | Files | Refs | README | LICENSE

commit 184c3278203d9831278038566370a1e5158bfa2a
parent 0c2ba15fbb0085487c1029d13e1eb4b276cbd3d1
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Thu, 12 Nov 2020 19:13:20 +0100

remove deb files from target after installing

Diffstat:
Minstall.sh | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/install.sh b/install.sh @@ -179,8 +179,8 @@ eval $(awk < $fstab '$1 !~ /^[^ =\/]+ / { printf "mkdir /mnt/target/%s; mount -t success "mounting done" ## template installation -info "installing template" cp_target="$TARGET" +info "installing template to $cp_target" test -d "$TARGET" || cp_target="/mnt/target" cp -ar "$SOURCE"/root/* "$cp_target" success "template installation done" @@ -191,6 +191,10 @@ info "preparing to install $PKG_LIST" debootstrap --no-merged-usr --variant=minbase "--include=$PKG_LIST" $(cat $SOURCE/name) "$cp_target" "$MIRROR" success "install done" +info "cleaning target's /var/cache/apt" +rm -r "/$cp_target/var/cache/apt/archives/*.deb" +success "cleaning done" + ## if using cryptsetup, then it's needed to update initramfs ## since it's *not* done (correctly?) by debootstrap if test -f "$crypttab"