commit 724ad2289c4638f8503aa6d12a599d7b6d7b6896 parent cdcc5928b5e9363c0192675f4832a3843d0bc3af Author: parazyd <parazyd@dyne.org> Date: Fri, 27 Oct 2017 19:50:10 +0200 install e2fsprogs from backports only for jessie Diffstat:
M | lib/helpers | | | 18 | +++++++++++++----- |
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/lib/helpers b/lib/helpers @@ -91,19 +91,27 @@ copy-root-overlay() { postbuild-clean() { fn postbuild-clean - req=(qemu_bin strapdir) + req=(qemu_bin strapdir release) ckreq || return 1 - cat <<EOF | sudo tee ${strapdir}/postbuild >/dev/null + case "$release" in + jessie) + cat <<EOF | sudo tee ${strapdir}/postbuild >/dev/null #!/bin/sh +# jessie-backports e2fsprogs because 4.x kernels apt-get update - -# backports e2fsprogs because 4.x kernels apt-get --yes --force-yes -t jessie-backports install e2fsprogs +EOF + chroot-script -d postbuild || zerr + ;; + esac + cat <<EOF | sudo tee ${strapdir}/postbuild >/dev/null +#!/bin/sh +apt-get update apt-get --yes --force-yes upgrade apt-get --yes --force-yes autoremove -#apt-get clean +apt-get clean updatedb EOF