diff -Nru debootstrap-1.0.118ubuntu1.5/debian/changelog debootstrap-1.0.118ubuntu1.6/debian/changelog --- debootstrap-1.0.118ubuntu1.5/debian/changelog 2021-10-15 08:26:09.000000000 -0400 +++ debootstrap-1.0.118ubuntu1.6/debian/changelog 2021-10-25 14:47:59.000000000 -0400 @@ -1,3 +1,10 @@ +debootstrap (1.0.118ubuntu1.6) focal; urgency=medium + + [ YunQiang Su ] + * stage1: re-mkdir /proc instead of umount if it is a symlink (LP: #1948713) + + -- Daniel Watkins Mon, 25 Oct 2021 14:47:59 -0400 + debootstrap (1.0.118ubuntu1.5) focal; urgency=medium * Add (Ubuntu) jammy as a symlink to gutsy (LP: #1947362). diff -Nru debootstrap-1.0.118ubuntu1.5/functions debootstrap-1.0.118ubuntu1.6/functions --- debootstrap-1.0.118ubuntu1.5/functions 2020-02-21 10:49:35.000000000 -0500 +++ debootstrap-1.0.118ubuntu1.6/functions 2021-10-25 14:47:36.000000000 -0400 @@ -1176,7 +1176,12 @@ umount_on_exit /dev/shm umount_on_exit /proc umount_on_exit /proc/bus/usb - umount "$TARGET/proc" 2>/dev/null || true + if [ -L "$TARGET/proc" ];then + rm -f $TARGET/proc + mkdir $TARGET/proc + else + umount "$TARGET/proc" 2>/dev/null || true + fi # some container environment are used at second-stage, it already treats /proc and so on if [ -z "$(ls -A "$TARGET/proc")" ]; then