--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: debootstrap: start bind-mounting /proc on Hurd and add nobindmount variant
- From: Gabriele Giacone <1o5g4r8o@gmail.com>
- Date: Wed, 5 Nov 2014 00:58:25 +0100
- Message-id: <20141104235825.GA1271@jessie01>
Package: debootstrap
Version: 1.0.64
Severity: wishlist
Dear Maintainer,
attached patch is pretty hurd-specific:
- disconnect (orphan) TARGET/proc passive translator and start
bind-mounting /proc along with /servers and /dev.
- add "nobindmount" variant to create chroots without bind-mounting
any filesystem. Main use case is chroot for subhurds [0].
[0] https://www.gnu.org/software/hurd/hurd/subhurd.html
Thanks for considering.
--
G..e
diff --git a/debootstrap b/debootstrap
index fef1ab5..9dced1e 100755
--- a/debootstrap
+++ b/debootstrap
@@ -100,7 +100,7 @@ usage()
archive
--variant=X use variant X of the bootstrap scripts
(currently supported variants: buildd, fakechroot,
- scratchbox, minbase)
+ scratchbox, minbase, nobindmount)
--keyring=K check Release files against keyring K
--no-check-gpg avoid checking Release file signatures
--no-resolve-deps don't try to resolve dependencies automatically
diff --git a/debootstrap.8 b/debootstrap.8
index 2cf44ca..b448089 100644
--- a/debootstrap.8
+++ b/debootstrap.8
@@ -71,13 +71,14 @@ or apt, and that it is far better to specify the entire base system than
rely on this option.
With this option set, this behaviour is disabled.
.IP
-.IP "\fB\-\-variant=minbase|buildd|fakechroot|scratchbox\fP"
+.IP "\fB\-\-variant=minbase|buildd|fakechroot|scratchbox|nobindmount\fP"
Name of the bootstrap script variant to use.
Currently, the variants supported are minbase, which only includes
essential packages and apt; buildd, which installs the build-essential
packages into
.IR TARGET ;
-and fakechroot, which installs the packages without root privileges.
+nobindmount, which doesn't bind-mount any filesystem; and fakechroot,
+which installs the packages without root privileges.
Finally there is variant scratchbox, which is for creating targets
for scratchbox usage.
The default, with no \fB\-\-variant=X\fP argument, is to create a base
diff --git a/functions b/functions
index 0d48390..07147c0 100644
--- a/functions
+++ b/functions
@@ -1064,10 +1064,13 @@ setup_devices () {
setup_devices_hurd () {
# Use the setup-translators of the hurd package, and firmlink
- # $TARGET/{dev,servers} to the system ones.
+ # $TARGET/{dev,servers,proc} to the system ones.
in_target /usr/lib/hurd/setup-translators -k
- settrans -a $TARGET/dev /hurd/firmlink /dev
- settrans -a $TARGET/servers /hurd/firmlink /servers
+ if ! doing_variant nobindmount; then
+ settrans -a $TARGET/dev /hurd/firmlink /dev
+ settrans -a $TARGET/servers /hurd/firmlink /servers
+ settrans -oa $TARGET/proc /hurd/firmlink /proc
+ fi
}
setup_devices_fakechroot () {
diff --git a/scripts/sid b/scripts/sid
index bf3404f..34089f7 100644
--- a/scripts/sid
+++ b/scripts/sid
@@ -1,7 +1,7 @@
mirror_style release
download_style apt
finddebs_style from-indices
-variants - buildd fakechroot minbase scratchbox
+variants - buildd fakechroot minbase scratchbox nobindmount
keyring /usr/share/keyrings/debian-archive-keyring.gpg
if doing_variant fakechroot; then
--- End Message ---
--- Begin Message ---
Source: debootstrap
Source-Version: 1.0.79
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 768102@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christian Perrier <bubulle@debian.org> (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: SHA256
Format: 1.8
Date: Fri, 19 Feb 2016 07:23:59 +0100
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.79
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Christian Perrier <bubulle@debian.org>
Description:
debootstrap - Bootstrap a basic Debian system
debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 768102
Changes:
debootstrap (1.0.79) unstable; urgency=medium
.
[ Samuel Thibault ]
* hurd: move setting up dev and servers firmlink to setup_proc stage. Also
firmlink proc there. Thanks Gabriele Giacone for all the investigation!
(Closes: #768102)
Checksums-Sha1:
0ce6c294a121c7a27ebb06f4b580ffb7832a1170 1812 debootstrap_1.0.79.dsc
4b7fa44d4535180204aee93680702031ed8c5c6e 64390 debootstrap_1.0.79.tar.gz
eb87ad740d75f6ba4d4c6c37d9e3d7a0c8cc0317 18862 debootstrap-udeb_1.0.79_all.udeb
094ff1596f1b73f9499d441340ad5def9b2bcdc4 66138 debootstrap_1.0.79_all.deb
Checksums-Sha256:
7a0764bbcbf777e6ec9940db6d9d5494f2e30a7d3500cf693d56c0d627096146 1812 debootstrap_1.0.79.dsc
11ee0dca0c0e0b5ccb0f80c885f62467c67b90abcbdd7f48dd8ca66af4ec5fc0 64390 debootstrap_1.0.79.tar.gz
58c90234a23489bc8c079ac43364aa8807d8224445eebb95290dafc279bd2d32 18862 debootstrap-udeb_1.0.79_all.udeb
5139e48966cf557b093142b3c142ef30fcea0f928ced41994745e147b2e4e3d9 66138 debootstrap_1.0.79_all.deb
Files:
c8badc354b0808e4f71e26578a8ffcf0 1812 admin extra debootstrap_1.0.79.dsc
5d2facd22ad3cad32529bf5704aa214b 64390 admin extra debootstrap_1.0.79.tar.gz
48dae2747db960f5484fe5355678c249 18862 debian-installer extra debootstrap-udeb_1.0.79_all.udeb
8d2b787af1e6a5c89376f2eb784d9f1e 66138 admin extra debootstrap_1.0.79_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJWx1bgAAoJEIcvcCxNbiWoK64QAJuwvQNtDfrKjvLaKU26U9GA
9KBzPjvWpGu+XjsMU5pK7fTy0z9eI13N6vVZf0Krp/HLBOxrf0Pp1gYAyrSqlv8p
M/eX3CAsM9Hmg7Ym+CsOsr7d0wqk/IwvzxoIlJmdE6Rpfhw58te97RTBjaZ3W//W
79viqgLamxVIny9P6OvnmyZVElNwaiIvHl9ldThG4MyFd7z8aDxAS8Kou+o38nwL
mzCdajKS3amVrND3lTd6qF6JH+NUmMUNfj5hUCJ/aTDYBSvMQMAqsrS2xyWzk5Gg
LO3NSK0dQPBEyDVOH8ROhGM1Xq5NkDkfReDd13i2tOTnSwmE9yCrWgTR/AqQv8mD
tQbXmbrf8xVGcWu3UqAJdMl0Kd0NBcSmVKQmWNhKaGRbxKsm66mQOMvzoeKqsJWu
BkOxBVIoK8f8MAGwAHpI3gavrUEViA6rMBU1FLsBNhlMkLLPBVvjB0AGzlLX23SP
5rmw8/ohXrYTYK7edmMsL9m5h6iXMrLEpScsBNehoNNJAFY291vewhoBD1DawlZw
LbwfxIhLZZkxsvAlK+qzh6aBt5CbPx0E3SCSl668uo5Q1OyXhT9fNvo1AKt4WLE4
por0tE+LWCYX2Yr+GMaHHg/Isfbl/FpLyEHm6aH9lXt7ac0RR6VLxeK/498gw0KJ
h0k+r+D++fHgQ+9GTUs3
=xt+u
-----END PGP SIGNATURE-----
--- End Message ---