diff --git a/lib/debootstrap-ng.sh b/lib/debootstrap-ng.sh index 40aecceb42..953482b9bd 100644 --- a/lib/debootstrap-ng.sh +++ b/lib/debootstrap-ng.sh @@ -48,9 +48,6 @@ debootstrap_ng() # stage: install kernel and u-boot packages # install distribution and board specific applications - mkdir -p $SDCARD/tmp/debs - mount --bind $DEST/debs/ $SDCARD/tmp/debs - install_distribution_specific install_common @@ -65,10 +62,6 @@ debootstrap_ng() # install from apt.armbian.com [[ $EXTERNAL_NEW == prebuilt ]] && chroot_installpackages "yes" - # cleanup for install_kernel and install_board_specific - umount $SDCARD/tmp/debs - mountpoint -q $SDCARD/tmp/debs || rm -rf $SDCARD/tmp/debs - # stage: user customization script # NOTE: installing too many packages may fill tmpfs mount customize_image diff --git a/lib/image-helpers.sh b/lib/image-helpers.sh index 3805350b60..47bdd6cf5f 100644 --- a/lib/image-helpers.sh +++ b/lib/image-helpers.sh @@ -55,7 +55,6 @@ unmount_on_exit() umount -l $MOUNT/boot >/dev/null 2>&1 umount -l $MOUNT >/dev/null 2>&1 losetup -d $LOOP >/dev/null 2>&1 - umount -l $SDCARD/tmp/debs >/dev/null 2>&1 rm -rf --one-file-system $SDCARD exit_with_error "debootstrap-ng was interrupted" } #############################################################################