Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>: Bug#897379; Package debootstrap.
(Tue, 01 May 2018 17:48:04 GMT) (full text, mbox, link).
Acknowledgement sent
to jhcha54008 <jhcha54008@free.fr>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 01 May 2018 17:48:04 GMT) (full text, mbox, link).
Subject: debian-common path if DEBOOTSTRAP_DIR in use
Date: Tue, 1 May 2018 19:46:36 +0200
Package: debootstrap
Version: 1.0.97
Severity: minor
Tags: patch
Dear Maintainer,
It seems that using the variable DEBOOTSTRAP_DIR may result in some strange
behavior. (/usr/sbin/debootstrap gives an unconditionnal priority to
DEBOOTSTRAP_DIR if set, and /usr/share/debootstrap/scripts/sid not)
I test debootstrap version 1.0.97 on an amd64 host (debian 8 jessie,
debootstrap is installed)
# dpkg -l debootstrap
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================================-======================-======================-===============================
ii debootstrap 1.0.67+deb8u1 all Bootstrap a basic Debian system
# tar -zxf debootstrap_1.0.97.tar.gz
# DEBOOTSTRAP_DIR=debootstrap-1.0.97 debootstrap-1.0.97/debootstrap sid mychroot
# echo $?
2
# cat mychroot/debootstrap/debootstrap.log
debootstrap-1.0.97/debootstrap: 9: .: Can't open /usr/share/debootstrap/scripts/debian-common
The patch below solved the problem for me (DEBOOTSTRAP_DIR is set at the
beginning of /usr/sbin/debootstrap. I suppose scripts/etch and scripts/kali
deserve the same change).
Thank you for your ongoing work on debootstrap !
Regards,
JH Chatenet
diff -Naur debootstrap-1.0.97/scripts/sid debootstrap-1.0.97/scripts/sid
--- debootstrap-1.0.97/scripts/sid 2018-04-17 04:06:32.000000000 +0200
+++ debootstrap-1.0.97/scripts/sid 2018-04-25 23:23:21.251598553 +0200
@@ -5,10 +5,10 @@
keyring /usr/share/keyrings/debian-archive-keyring.gpg
# include common settings
-if [ -d /usr/share/debootstrap/scripts ]; then
- . /usr/share/debootstrap/scripts/debian-common
+if [ -e "$DEBOOTSTRAP_DIR/debian-common" ]; then
+ . "$DEBOOTSTRAP_DIR/debian-common"
elif [ -e "$DEBOOTSTRAP_DIR/scripts/debian-common" ]; then
. "$DEBOOTSTRAP_DIR/scripts/debian-common"
else
- . /debootstrap/debian-common
+ error 1 NOCOMMON "debian-common cannot be found."
fi
Message sent on
to jhcha54008 <jhcha54008@free.fr>:
Bug#897379.
(Thu, 17 May 2018 09:54:03 GMT) (full text, mbox, link).
Subject: Re: Bug#897379: debian-common path if DEBOOTSTRAP_DIR in use
Date: Thu, 17 May 2018 18:50:35 +0900
control: tags -1 patch
control: tags -1 pending
Hi,
On Tue, 1 May 2018 19:46:36 +0200
jhcha54008 <jhcha54008@free.fr> wrote:
> I test debootstrap version 1.0.97 on an amd64 host (debian 8 jessie,
> debootstrap is installed)
It's not intentional use, mixing old package and new tarball results
wrong result. Debootstrap's dependencies are simple and doesn't break
your system, so I recommend you to install it to your host.
Anyway, your patch is almost okay, but last part
> - . /debootstrap/debian-common
> + error 1 NOCOMMON "debian-common cannot be found."
would break d-i, so I would modify and apply it.
--
Regards,
Hideki Yamane henrich @ debian.org/iijmio-mail.jp
Added tag(s) pending.
Request was from Hideki Yamane <henrich@iijmio-mail.jp>
to 897379-submitter@bugs.debian.org.
(Thu, 17 May 2018 09:54:03 GMT) (full text, mbox, link).
Reply sent
to Hideki Yamane <henrich@debian.org>:
You have taken responsibility.
(Tue, 22 May 2018 11:51:06 GMT) (full text, mbox, link).
Notification sent
to jhcha54008 <jhcha54008@free.fr>:
Bug acknowledged by developer.
(Tue, 22 May 2018 11:51:06 GMT) (full text, mbox, link).
Source: debootstrap
Source-Version: 1.0.100
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 897379@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Hideki Yamane <henrich@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: SHA512
Format: 1.8
Date: Tue, 22 May 2018 20:15:26 +0900
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.100
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Hideki Yamane <henrich@debian.org>
Description:
debootstrap - Bootstrap a basic Debian system
debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 586158897379
Changes:
debootstrap (1.0.100) unstable; urgency=medium
.
[ Hideki Yamane ]
* Specify https mirror to check https mirror specific problem
(See #896071)
* Quote $DEBOOTSTRP_DIR properly (Closes: #586158)
* Simpify checking debian-common file (Closes: #897379)
.
[ Philipp Kern ]
* Add an initial Gitlab CI config file.
Checksums-Sha1:
1c64dd626a2a95a1cc6e09e894f1e2dcc2ec9d37 2017 debootstrap_1.0.100.dsc
f1d1df3f49d537207bdd0371af50367e3cba60d0 72269 debootstrap_1.0.100.tar.gz
d2ab6f0119d0eb1b6810f70cc2959e086a2a4003 20860 debootstrap-udeb_1.0.100_all.udeb
f087dea9cb02aae037d14f1f2848ae0d3e91c35f 69926 debootstrap_1.0.100_all.deb
95f7182fb4a8398f6477fef7f14fca49f1e47299 5823 debootstrap_1.0.100_amd64.buildinfo
Checksums-Sha256:
fc09bb82811be5d684c12e77c34658f51cde9f7b638b9ed71ae3cb197a907a93 2017 debootstrap_1.0.100.dsc
9a0bc42f363c37666e0f21c2d6c7440cbde9b296ac81c8cd6f7311ac8d70bc4a 72269 debootstrap_1.0.100.tar.gz
efc2093c571e6d2b72d37bccfc00e550c1e739dd94f7b538297bad5f0c5864cc 20860 debootstrap-udeb_1.0.100_all.udeb
d988404ebd562a30d6b11303bca8921eb2f9a407a6425a65200f9afe852fbe1c 69926 debootstrap_1.0.100_all.deb
9f6cd8b2dde63d54689e4c4c84a4cbb171ae92183ad5527eec9914de00904962 5823 debootstrap_1.0.100_amd64.buildinfo
Files:
e77d300ab3ffa9a500e01e9ac8a16f45 2017 admin optional debootstrap_1.0.100.dsc
494e61acbf7757226b4d4c0bbba4768b 72269 admin optional debootstrap_1.0.100.tar.gz
978a815d1e020489ecc0e6197d55efdc 20860 debian-installer optional debootstrap-udeb_1.0.100_all.udeb
300cf06bd494e7ef001dac5bf47a8799 69926 admin optional debootstrap_1.0.100_all.deb
b068428313cdad9247520507541d052a 5823 admin optional debootstrap_1.0.100_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCgAxFiEEWOEiL5aWyIWjzRBMXTKNCCqqsUAFAlsD/mQTHGhlbnJpY2hA
ZGViaWFuLm9yZwAKCRBdMo0IKqqxQHv7D/9P3IpDmWCGnLROqJGAh4KmTNH8MsFU
eKFx3secWHP9KeNppS66ieC7Pq7ZNITM66XLaptim2KW7dBbIhQezJr++QvxaPNV
4dACLxPjkjBnLpv8CXljjx7qdfr/ueHEwy/4NyuH6ZGThsQVV8DDAdy4WDWaTVx2
Ngk+rjFx1tBNIt/FcPm887JAQyMkemmhctVnxeRo7W7x9vWZ0CZUE8xrukF2M9vD
DkBp/0avkD8pndMrTlfEO/ykH8sMHBC/QlLNa3dmi98uvndxgnFVNlub1gre0Gx3
ss/nYZlAIwoO9hBXXKpFo63B8eZpxjMx6daKnaGr9eT3TJ2Co9Y4AWzbcHgQt1v4
lAWPsnY2yBP6+WcBM6zezUjl7kv5Iwj7LBN3zXZISVxJ1yhbucsEL/Bl35LVcOuX
20HTAZ+3S+HTB9UtDeApvbPvUTlSv1SyCJQqTSVui0aT3xIFwLgF5HTaYHNXgKm6
ZUdUG7R+9OzNYQfvdkTPjjGAJ/L/J/tjMY9JTsvL2jOKKjdsXmjqpl+XkT5eu6gb
Y6yHdTmeL+uFyyLSbfnBrK9zT7WIfUjL7sdgvA+8Ey9BtB9fkeOJiM806kOGB4wL
rt/gepThgTy480eutiPs0Ug4CAH65es/JBP921RCHtRV+TDM2lql1M3OeoMueap7
R2YqCASSPIeS7Q==
=JdtC
-----END PGP SIGNATURE-----
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>: Bug#897379; Package debootstrap.
(Thu, 07 Jun 2018 20:39:04 GMT) (full text, mbox, link).
Acknowledgement sent
to jhcha54008 <jhcha54008@free.fr>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Thu, 07 Jun 2018 20:39:04 GMT) (full text, mbox, link).
Subject: Re: #897379 debootstrap : debian-common path if DEBOOTSTRAP_DIR in
use
Date: Thu, 7 Jun 2018 22:37:13 +0200
Control: reopen 897379
Hi,
Unfortunately, the patch broke one (admittedly unusual) use case (debootstrap is not installed as a deb package
on the system) :
# DEBOOTSTRAP_DIR=debootstrap-1.0.101/ debootstrap-1.0.101/debootstrap --foreign sid mychroot-101
[ ... ]
I: Extracting zlib1g...
# echo $?
0
# DEBOOTSTRAP_DIR=./mychroot-101/debootstrap debootstrap-1.0.101/debootstrap --second-stage --second-stage-target=./mychroot-101
E: File not found: debian-common
# echo $?
1
(This use case proved useful once to work around a bug in fakechroot not willing to chroot twice)
It worked with older versions of debootstrap :
# DEBOOTSTRAP_DIR=debootstrap-1.0.89/ debootstrap-1.0.89/debootstrap --foreign sid mychroot-89
[ ... ]
I: Extracting zlib1g...
# echo $?
0
# DEBOOTSTRAP_DIR=./mychroot-89/debootstrap debootstrap-1.0.89/debootstrap --second-stage --second-stage-target=./mychroot-89
[ ... ]
I: Base system installed successfully.
# echo $?
0
# umount mychroot-89/proc
# umount mychroot-89/sys
debootstrap version 1.0.101 invoked as above succeeds with the patch below applied :
[ ... ]
I: Base system installed successfully.
# echo $?
0
# umount mychroot-101/etc/machine-id
I tested in qemu emulation too the stretch debian-installer (netboot, amd64)
with debootstrap version 1.0.101 patched as below. The installation
finished successfully.
(DEBOOTSTRAP_DIR if void is set in /usr/sbin/debootstrap line 15)
Thank you for your work on debootstrap !
Regards,
JH Chatenet
diff -Naur debootstrap-1.0.101/scripts/etch debootstrap-1.0.101/scripts/etch
--- debootstrap-1.0.101/scripts/etch
+++ debootstrap-1.0.101/scripts/etch
@@ -9,8 +9,8 @@
# include common settings
if [ -e "$DEBOOTSTRAP_DIR/scripts/debian-common" ]; then
. "$DEBOOTSTRAP_DIR/scripts/debian-common"
-elif [ -e /debootstrap/debian-common ]; then
- . /debootstrap/debian-common
+elif [ -e "$DEBOOTSTRAP_DIR/debian-common" ]; then
+ . "$DEBOOTSTRAP_DIR/debian-common"
else
error 1 NOCOMMON "File not found: debian-common"
fi
diff -Naur debootstrap-1.0.101/scripts/kali debootstrap-1.0.101/scripts/kali
--- debootstrap-1.0.101/scripts/kali
+++ debootstrap-1.0.101/scripts/kali
@@ -8,8 +8,8 @@
# include common settings
if [ -e "$DEBOOTSTRAP_DIR/scripts/debian-common" ]; then
. "$DEBOOTSTRAP_DIR/scripts/debian-common"
-elif [ -e /debootstrap/debian-common ]; then
- . /debootstrap/debian-common
+elif [ -e "$DEBOOTSTRAP_DIR/debian-common" ]; then
+ . "$DEBOOTSTRAP_DIR/debian-common"
else
error 1 NOCOMMON "File not found: debian-common"
fi
diff -Naur debootstrap-1.0.101/scripts/sid debootstrap-1.0.101/scripts/sid
--- debootstrap-1.0.101/scripts/sid
+++ debootstrap-1.0.101/scripts/sid
@@ -7,8 +7,8 @@
# include common settings
if [ -e "$DEBOOTSTRAP_DIR/scripts/debian-common" ]; then
. "$DEBOOTSTRAP_DIR/scripts/debian-common"
-elif [ -e /debootstrap/debian-common ]; then
- . /debootstrap/debian-common
+elif [ -e "$DEBOOTSTRAP_DIR/debian-common" ]; then
+ . "$DEBOOTSTRAP_DIR/debian-common"
else
error 1 NOCOMMON "File not found: debian-common"
fi
Bug reopened
Request was from jhcha54008 <jhcha54008@free.fr>
to 897379-submit@bugs.debian.org.
(Thu, 07 Jun 2018 20:39:04 GMT) (full text, mbox, link).
No longer marked as fixed in versions debootstrap/1.0.100.
Request was from jhcha54008 <jhcha54008@free.fr>
to 897379-submit@bugs.debian.org.
(Thu, 07 Jun 2018 20:39:06 GMT) (full text, mbox, link).
Message sent on
to jhcha54008 <jhcha54008@free.fr>:
Bug#897379.
(Wed, 13 Jun 2018 12:57:03 GMT) (full text, mbox, link).
Subject: Bug #897379 in debootstrap marked as pending
Date: Wed, 13 Jun 2018 12:55:18 +0000
Control: tag -1 pending
Hello,
Bug #897379 in debootstrap reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below, and you can check the diff of the fix at:
https://salsa.debian.org/installer-team/debootstrap/commit/77299b40186bff41cdd2f757949bce02861b30d7
------------------------------------------------------------------------
Fix debian-common path with tarball and --second-stage (Closes: #897379)
------------------------------------------------------------------------
(this message was generated automatically)
--
Greetings
https://bugs.debian.org/897379
Added tag(s) pending.
Request was from henrich@debian.org
to 897379-submitter@bugs.debian.org.
(Wed, 13 Jun 2018 12:57:03 GMT) (full text, mbox, link).
Reply sent
to Hideki Yamane <henrich@debian.org>:
You have taken responsibility.
(Wed, 13 Jun 2018 13:51:17 GMT) (full text, mbox, link).
Notification sent
to jhcha54008 <jhcha54008@free.fr>:
Bug acknowledged by developer.
(Wed, 13 Jun 2018 13:51:17 GMT) (full text, mbox, link).
Source: debootstrap
Source-Version: 1.0.102
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 897379@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Hideki Yamane <henrich@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: SHA512
Format: 1.8
Date: Wed, 13 Jun 2018 22:00:11 +0900
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.102
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Hideki Yamane <henrich@debian.org>
Description:
debootstrap - Bootstrap a basic Debian system
debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 839046877855897379
Changes:
debootstrap (1.0.102) unstable; urgency=medium
.
* Enable merged-/usr by default (Closes: #839046)
This is applied for buster and later.
* Fix "debootstrap doesn't carry --components across --foreign/--second-stage"
(Closes: #877855)
* Fix debian-common path with tarball and --second-stage (Closes: #897379)
Checksums-Sha1:
cb78b63ae98c3391bb8ef6bd8d66b14a556ca66d 2017 debootstrap_1.0.102.dsc
002e34f3bb23cef7f33e89ea9af4d51700ef0804 72977 debootstrap_1.0.102.tar.gz
49f82fe1d4d5efab2e7765a6d32a212d3ef1611a 20832 debootstrap-udeb_1.0.102_all.udeb
7cb8457e9e1acf415f1f1de075bd9d1f3d481242 70446 debootstrap_1.0.102_all.deb
29b76cdb908605108c02c204aebce65c42d4a617 5854 debootstrap_1.0.102_amd64.buildinfo
Checksums-Sha256:
d6b4c274eda88e3848a484505592ddf5f6d53edb8913aa19eb1e355c676dd8d0 2017 debootstrap_1.0.102.dsc
09675c7338ff0a328a1d67d84af93af46716a618d6c8cdb8c76d1ce07cb70ec5 72977 debootstrap_1.0.102.tar.gz
828ef7a5b09629b35fe5e14420c675703e6b8715ab8dc728851346130418c5cc 20832 debootstrap-udeb_1.0.102_all.udeb
f0b9d471dc84e1e13ec8050a6095d79d41d037d1b9024404234ae08b7debf5a6 70446 debootstrap_1.0.102_all.deb
860648c93cdd716fa43cb4c4d4e3faebb1d24753c73aee568b1341926e80f06e 5854 debootstrap_1.0.102_amd64.buildinfo
Files:
9c61ed4c7f742e033e809ff0d669d46e 2017 admin optional debootstrap_1.0.102.dsc
7415e552e883051e9119f46da34bc4f5 72977 admin optional debootstrap_1.0.102.tar.gz
e04f5c831073043a5560ff156d826bc6 20832 debian-installer optional debootstrap-udeb_1.0.102_all.udeb
5d56698bf0da678e7536e3dd757b7f1b 70446 admin optional debootstrap_1.0.102_all.deb
7a1ed2c0376bde97cb6cafaa1196cc64 5854 admin optional debootstrap_1.0.102_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCgAxFiEEWOEiL5aWyIWjzRBMXTKNCCqqsUAFAlshGpsTHGhlbnJpY2hA
ZGViaWFuLm9yZwAKCRBdMo0IKqqxQP09D/9IcBfTGf2W9/pcZqgDlra5NC8OZaei
bKx9i7n93b7fF84PUeqNJlQBrFxunetEB6VTJpAz3wVJO6HXCLsUVjAa/Fy/rrqW
QPYW7iv4senhZFwCSA4vxFBkYv36hx4Qhe1QMTiQ9HJB701aqCZurMwh2tOxsP7B
XWgg2jKBTG5sDmnmzPZRJetdeJqfDNibsPXbNn6woZnZRKlnuhaNRuOR8r9JnzyO
EYhhkGsxVoTFHNeZLpt5f8ANZyTQ7YmAhk9QIMrrOnVAaFyEIS1+8qHI5nUN1b6y
sZ9/I8o7Cyi9TYnj335CHs1H6RRHL9xzV4IoMh1fMBMoQeOE4XqT+fAMZhC+uSEL
nSy0FT6/gQPGP1v0mGjBgf6TsKMCKb+OzybEl8wGwgkzzJwmgO6rJXIOr0+xhD6a
JXS+2atiD6bhu+G/k1HxJCb3oz1vhdTaxAHA9vSaHsdOhIjADIe2NqsqBx2ovtqj
EKpV4+c7QE4sfBmhaRkzyF1bDjzPEhndBdhJerhoFOv7vzcG142kPRlJnG2k8s2b
2FDkX1S/Z6CJP+vKQBEXQPHF6ho/bTgLlOZS9uVFlBhLD4dV/zko2yEl2MS0hTBk
I9lzKFL4E8sYC2m7f2BkoH6IJSZsCRKS7U8dB2/xffvWXrUXYsiWjRtow7ZfAsqV
Gxb15XwCOFvaeQ==
=LHFq
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 12 Jul 2018 07:29:24 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.