diff --git a/mklive.sh b/mklive.sh index ab327d311e..811bfdcda6 100755 --- a/mklive.sh +++ b/mklive.sh @@ -47,22 +47,6 @@ print_step() { info_msg "[${CURRENT_STEP}/${STEP_COUNT}] $*" } -mount_pseudofs() { - for f in sys dev proc; do - mkdir -p "$ROOTFS"/$f - mount --rbind /$f "$ROOTFS"/$f - done -} - -umount_pseudofs() { - for f in sys dev proc; do - if [ -d "$ROOTFS/$f" ] && ! umount -R -f "$ROOTFS/$f"; then - info_msg "ERROR: failed to unmount $ROOTFS/$f/" - return 1 - fi - done -} - error_out() { trap - INT TERM 0 umount_pseudofs || exit "${1:-0}"