[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#968927: marked as done (debootstrap in docker: may umount the docker instance's /proc)



Your message dated Mon, 26 Apr 2021 14:18:57 +0000
with message-id <E1lb24f-0006MD-B4@fasolo.debian.org>
and subject line Bug#968927: fixed in debootstrap 1.0.124
has caused the Debian Bug report #968927,
regarding debootstrap in docker: may umount the docker instance's /proc
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
968927: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968927
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debootstrap
Version: 1.0.123
X-Debbugs-CC: syq@debian.org

In a docker instance called with --privileged, debootstrap will umount the /proc of the whole docker instance.
It is due to in the 1st stage, the TARGET/proc is a symlink to /proc,
and in setup_proc, debootstrap will try to umount TARGET/proc.

--- a/functions
+++ b/functions
@@ -1183,7 +1183,12 @@ setup_proc () {
                 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

--- End Message ---
--- Begin Message ---
Source: debootstrap
Source-Version: 1.0.124
Done: Dimitri John Ledkov <xnox@ubuntu.com>

We believe that the bug you reported is fixed in the latest version of
debootstrap, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 968927@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dimitri John Ledkov <xnox@ubuntu.com> (supplier of updated debootstrap package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 26 Apr 2021 15:02:44 +0100
Source: debootstrap
Architecture: source
Version: 1.0.124
Distribution: experimental
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Dimitri John Ledkov <xnox@ubuntu.com>
Closes: 968927
Launchpad-Bugs-Fixed: 1923845
Changes:
 debootstrap (1.0.124) experimental; urgency=medium
 .
   [ Colin Watson ]
   * Add (Ubuntu) groovy as a symlink to gutsy.
 .
   [ Samuel Thibault ]
   * functions: Turn for loops variables into locals, suggested by jhcha54008.
 .
   [ YunQiang Su ]
   * stage1: re-mkdir /proc if it is a symlink instead of umount. (Closes: #968927)
 .
   [ Luca Falavigna ]
   * Add (Ubuntu) hirsute as a symlink to gutsy.
 .
   [ Tobias Koch ]
   * Add --inrelease-path option to allow specifying by-hash InRelease
     location.
 .
   [ Dimitri John Ledkov ]
   * functions: add zstd control&data support to the ar extractor LP: #1923845
   * Add (Ubuntu) impish as a symlink to gutsy.
   * gutsy: sync changes from Ubuntu, to ensure that impish+ are always
     merged-usr.
   * gutsy: use --extractor=ar if dpkg-deb has no zstd support (i.e. on
     Debian & non-Ubuntu derivatives).
   * rules,control: adjust Recommends/Suggests to be appropriate on each
     distro.
Checksums-Sha1:
 ba383bd966469131c6781698635eb9509544a26a 1919 debootstrap_1.0.124.dsc
 204a1a7f742c2772fe2ca0139da948cf95787750 78498 debootstrap_1.0.124.tar.gz
 25f26e92a1b7b8dd89f7c38789b2594721010e20 7982 debootstrap_1.0.124_source.buildinfo
Checksums-Sha256:
 8b0a5c2ef1935e2cbd7e8f259041a29e33f12eba5314d53a209e9847963b043f 1919 debootstrap_1.0.124.dsc
 7700e9864b29f166b26c54153ed8c275b46f4b9a60468bb607e019a64c16cd8f 78498 debootstrap_1.0.124.tar.gz
 4f5fe6ca3b0572d4b22eaa879902e9f84e4ae4f41ca2a134e64ea28b680a6f02 7982 debootstrap_1.0.124_source.buildinfo
Files:
 95a8ee2918ccd1fc3bae1a4af3f0b0a7 1919 admin optional debootstrap_1.0.124.dsc
 8a5e97f60236c3a63f715c056a5f0e29 78498 admin optional debootstrap_1.0.124.tar.gz
 78fe5582636a1b4296758391d7dad7c6 7982 admin optional debootstrap_1.0.124_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE7iQKBSojGtiSWEHXm47ISdXvcO0FAmCGyCYACgkQm47ISdXv
cO3kbRAAioQ3jz3p8wZrYOWcVH8kBOfK231/DSFfB+hpJoYhF/B0jD2pCI+7qgNJ
zwAkHRGb6V8mJPg/vZ00320Nu4axQoaLLiE+Y9Dy74tLxVFVZVEqnB07Kb2/9BDv
y2eqWgNqPF9vAstdt0YjZEGxdaBq7jgHnKyGJl0FCuLnWA+Ev7F2s65S8B8RqH6t
5a/T5q52qM2z/4WCxwIJELsth4vtScNUuLqMacMRgR+lPSB6aRX0IbuiASuHO8qV
jFGFCgJEU7H6nzzr1qsCzCG7jlhWsFlVu3ibMutf4O1nfnDwka9/tVlCbvwu8vtE
RLtTYYWy67fa6d7zt1VCVsFaJO+5bhhoj7MAo8MiBeTfjYqMG0sAcuS0YzEdu5JN
/xqk5DAvb/LNDerkNTJbiCDMo3W6NLgZS6Mjpb2OeJ7rHpDChBOD9TzdP/+9WW28
Sbg0x1tpUt267EoVU1I63TaqUrj3iJFNb18pI63xbVVkB4H5TJM06Ah0oz5HTcN7
FcMUpxslfQ9nIrQOb9o93NdKFM+UR/6JNuiEucpQhLBsv9wdLgsrcqHkrRASJg+S
BGMEAPp+4Vhi+V3UoP07DruXL71ZT3TgAbSdEnsBd8HpEcYc20wd9RK9Atk7+8sf
FFe1QtvUGgNmfHiNJYdiCfyIxbeT3EpfUpCVsqEQAoWiy2rJ+Ek=
=ZiXm
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: