1 2 3 4 5 6 7 8 9 10 11 12 13 14
post_install() { if [ "$(uname -m)" = "x86_64" ]; then darch="amd64" elif [ "$(uname -m)" = "i686" ]; then darch="i386" else darch="mips64el" fi echo "$darch" > /usr/share/debootstrap/arch } pre_remove() { rm -f /usr/share/debootstrap/arch }