X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=mk-basefile-big;h=873b7ffb24be2b76aa1c297b7fb7f8f057c69541;hp=eee1a4c5573d3ee0a0753987694d6d3c224bd459;hb=HEAD;hpb=ac4e0089e245c96a388b8fcdd92fc05da3399694 diff --git a/mk-basefile-big b/mk-basefile-big index eee1a4c..95d2e9f 100755 --- a/mk-basefile-big +++ b/mk-basefile-big @@ -58,6 +58,9 @@ case $distver in distro=trisquel classes="UBUNTU FLIDAS64 VOL_FLIDAS FLIDAS DESKTOP" ;; + stretch) + classes="DEBIAN STRETCH64 VOL_STRETCH STRETCH DESKTOP" +;; *) echo "$0: error: unknown DISTRO_CODENAME" usage 1 @@ -70,14 +73,13 @@ distro=trisquel t=/tmp/dirinstall -cleanup() { +err-cleanup() { sed -i 's/^#LOGUSER=/LOGUSER=/' /etc/fai/fai.conf for d in proc var/lib/dpkg var/cache; do umount -R $t/$d ||: done rm -rf $t } -_errcatch_cleanup=cleanup myfai-chboot default @@ -98,7 +100,7 @@ rm -f $t/etc/hostname $t/etc/resolv.conf \ $t/var/lib/apt/lists/*_* $t/usr/bin/qemu-*-static \ $t/etc/udev/rules.d/70-persistent-net.rules echo | dd of=$t/etc/machine-id -tar --one-file-system -C $t -cf - . | gzip > /a/bin/fai-basefiles/basefiles/${distver^^}64BIG.tar.gz +tar --one-file-system -C $t -cf - . | zstd -9 > /a/bin/fai-basefiles/basefiles/${distver^^}64BIG.tar.zst cleanup