Debian Bug report logs -
#390647
debootstrap failes without error, on the first run, if resolv.conf is a broken symlink
Reported by: Ronny Aasen <ronny@datapart-as.no>
Date: Mon, 2 Oct 2006 12:18:06 UTC
Severity: minor
Tags: patch
Found in version debootstrap/0.3.3
Fixed in version debootstrap/1.0.21
Done: Otavio Salvador <otavio@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#390647; Package debootstrap.
(full text, mbox, link).
Acknowledgement sent to Ronny Aasen <ronny@datapart-as.no>:
New Bug report received and forwarded. Copy sent to Anthony Towns <ajt@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package:debootstrap
Version: 0.3.3
Severity: minor
This error might be more a resolvconf bug, but i'd expect a better error
message from debootstrap too.
I am using the debian etch beta3 cd installer, and a custom udeb
ltsp-client-builder.
The purpose of this udeb is to create a ltsp chroot in
the /target/opt/ltsp/i386 This udeb runs debootstrap after pkgsel, just
before finish-install. This debootstrap run exits with no error message.
If one examine the debootstrap-target/debootstrap/debootstrap.log file
you see a error message saying
"cat: resolv.conf no such file or directoy"
if you try this in the shell with
cat /etc/resolv.conf you get the same error, becouse resolv.conf is a
broken link to /etc/resolvconf/run/resolv.conf
How to reproduce:
1. run the beta3 installer until the next step is "finish install".
2. swap to tty2
3. chroot /target
4. run debootstrap etch /opt/ltsp/i386 file:///cdrom
You can workaround the problem by either run debootstrap twice in
succession.
Or by touch /etc/resolvconf/run/resolv.conf before running debootstrap.
--
mvh
Ronny Aasen -- 41616155 -- ronny@datapart-as.no --
Datapart AS -- 57682100 -- www.datapart-as.no --
[signature.asc (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#390647; Package debootstrap.
(full text, mbox, link).
Acknowledgement sent to Ronny Aasen <ronny@skolelinux.no>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>.
(full text, mbox, link).
Message #10 received at 390647@bugs.debian.org (full text, mbox, reply):
Tags: patch
resolv.conf in debootstrap chroot is copied from the resolv.conf on the
host where debootstrap is executed. the file
/usr/lib/debootstrap/functions, contains the line
conditional_cp /etc/resolv.conf "$TARGET"
conditional_cp () {
if [ ! -e "$2/$1" ]; then
if [ -L "$1" ]; then
cat "$1" >"$2/$1"
elif [ -e "$1" ]; then
cp -a "$1" "$2/$1"
fi
fi
}
but when /etc/resolv.conf is a broken symlink. As it is in the debian
installer until the system is rebooted and resolvconf populates it.
the command cat "$1" >"$2/$1" gives a "no such file or directory" and
debootstrap exits abnormally.
a modification to forinstance
conditional_cp () {
if [ ! -e "$2/$1" ]; then
if [ -L "$1" -a -e "$1"]; then
cat "$1" >"$2/$1"
elif [ -e "$1" ]; then
cp -a "$1" "$2/$1"
fi
fi
}
Would check that the source also exsisted before trying to cat it.
Ronny Aasen
Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#390647; Package debootstrap.
(full text, mbox, link).
Acknowledgement sent to Ronny Aasen <ronny@skolelinux.no>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>.
(full text, mbox, link).
Message #15 received at 390647@bugs.debian.org (full text, mbox, reply):
More knowledgeable people in debian-devel suggested
conditional_cp () {
if [ ! -e "$2/$1" ]; then
if [ -L "$1" ] && [ -e "$1" ]; then
cat "$1" >"$2/$1"
elif [ -e "$1" ]; then
cp -a "$1" "$2/$1"
fi
fi
}
as a more portable and less syntactically ambiguous method
Ronny
Information forwarded to debian-bugs-dist@lists.debian.org, Anthony Towns <ajt@debian.org>:
Bug#390647; Package debootstrap.
(full text, mbox, link).
Acknowledgement sent to Vagrant Cascadian <vagrant+bugs@freegeek.org>:
Extra info received and forwarded to list. Copy sent to Anthony Towns <ajt@debian.org>.
(full text, mbox, link).
Message #20 received at 390647@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: debootstrap
Version: 0.3.3
Followup-For: Bug #390647
attached patch based on the information provided in this bug report,
though it handles broken symlinks by skipping those files, which is
maybe not ideal.
live well,
vagrant
[debootstrap.conditional_cp.diff (text/plain, attachment)]
Message sent on to Ronny Aasen <ronny@datapart-as.no>:
Bug#390647.
(full text, mbox, link).
Tags added: patch
Request was from Ronny Aasen <ronny@datapart-as.no>
to control@bugs.debian.org.
(full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#390647; Package debootstrap.
(Tue, 15 Dec 2009 10:39:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Holger Levsen <holger@layer-acht.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 15 Dec 2009 10:39:03 GMT) (full text, mbox, link).
Message #30 received at 390647@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
user debian-edu@lists.debian.org
usertag 390647 + debian-edu
thanks
Hi,
since 3 years we work around this bug (*), which has a (IMO) straightforward
patch, but yet never seen a reply from the maintainers. Any chance to see
this fixed for squeeze?
cheers,
Holger
(*) in
$svn/debian-edu/trunk/src/edu-ltsp-client-builder/debian/ltsp-client-builder.postinst
which I think is also used in the ltsp proper packages...
[signature.asc (application/pgp-signature, inline)]
Added tag(s) pending.
Request was from Otavio Salvador <otavio@ossystems.com.br>
to control@bugs.debian.org.
(Tue, 15 Dec 2009 14:30:07 GMT) (full text, mbox, link).
Reply sent
to Otavio Salvador <otavio@debian.org>:
You have taken responsibility.
(Mon, 22 Feb 2010 03:36:08 GMT) (full text, mbox, link).
Notification sent
to Ronny Aasen <ronny@datapart-as.no>:
Bug acknowledged by developer.
(Mon, 22 Feb 2010 03:36:08 GMT) (full text, mbox, link).
Message #37 received at 390647-close@bugs.debian.org (full text, mbox, reply):
Source: debootstrap
Source-Version: 1.0.21
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:
debootstrap-udeb_1.0.21_all.udeb
to main/d/debootstrap/debootstrap-udeb_1.0.21_all.udeb
debootstrap_1.0.21.dsc
to main/d/debootstrap/debootstrap_1.0.21.dsc
debootstrap_1.0.21.tar.gz
to main/d/debootstrap/debootstrap_1.0.21.tar.gz
debootstrap_1.0.21_all.deb
to main/d/debootstrap/debootstrap_1.0.21_all.deb
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 390647@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Otavio Salvador <otavio@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@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 21 Feb 2010 23:11:06 -0300
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.21
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Otavio Salvador <otavio@debian.org>
Description:
debootstrap - Bootstrap a basic Debian system
debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 288109 345762 390647 458663 557296 561283 561298
Changes:
debootstrap (1.0.21) unstable; urgency=low
.
[ Otavio Salvador ]
* Apply patch from Clint Adams <schizo@debian.org> to add support for
gz/bz2/xz data.tar (closes: #458663).
.
[ Guillem Jover ]
* Refactor deb extractors into two new functions.
* Use dpkg-deb if available instead of ar (closes: #557296).
* Add an --extractor option to override the automatic extractor selection.
.
[ Otavio Salvador ]
* Document new --extractor option in manpage.
* Apply patch from Vagrant Cascadian <vagrant+bugs@freegeek.org> not
fail if resolv.conf is a broken symlink (closes: #390647).
.
[ Frans Pop ]
* Use tab indentation in scripts/debian/sid to reduce its size (relevant
for Debian Installer).
* Add apt to base packages for the buildd variant as it is no longer marked
Build-Essential.
.
[ Otavio Salvador ]
* Apply patch from Andres Salomon <dilinger@collabora.co.uk> to honor
--components when using mirror_style 'main' (closes: #561283).
* Apply patch from Andres Salomon <dilinger@collabora.co.uk> to fix
iteration through components in download_main (closes: #561298).
.
[ Joey Hess ]
* Allow the suite to be stable, testing, or unstable when debootstrapping
Debian. Closes: #288109
* Make scripts directory in source tree look like installed directory,
and add a section to README explaining an easy way to run
debootstrap w/o installing it. Closes: #345762
* Convert rules file to use dh with overrides.
* Remove binary-basedebs target from debian/rules.
This target has been broken in multiple ways since 2007. While I
accidentially partially fixed it with the above changes, this is evidence
it's dead code that can be safely removed.
Checksums-Sha1:
4210e7b38b194f2edf5b250d3b4c4a5361c0a3b5 1669 debootstrap_1.0.21.dsc
55e151a851c25cd82f0bede60ee6d5bd140223dc 56841727 debootstrap_1.0.21.tar.gz
5a71a47a1183ae096f377eeb90900899907cf589 57042 debootstrap_1.0.21_all.deb
785919c500862fc28d184eb5d59bdf9393786339 18886 debootstrap-udeb_1.0.21_all.udeb
Checksums-Sha256:
9852140ec9dae3df6f824cfe98b2e84089b5ef6b9487ca318e44164fee47c782 1669 debootstrap_1.0.21.dsc
fd0f2a92f9706a7b52935fc988b84d6678173cbffd14b0ea84f43335e665a303 56841727 debootstrap_1.0.21.tar.gz
be2bc42919796889d0b3110a919b9aa69c9c5e1974574994fd128938c5c22893 57042 debootstrap_1.0.21_all.deb
73a234f2e3e6907b8eea6e9f7b4372bfe042ef9bf61924751519b599e7edf3e0 18886 debootstrap-udeb_1.0.21_all.udeb
Files:
5d54eba945bfb7f14fcb4cc892a1b828 1669 admin extra debootstrap_1.0.21.dsc
90c8e02b41ef73b8a5dc774d5a546635 56841727 admin extra debootstrap_1.0.21.tar.gz
c486ada83c35d46152beb9d30aa98d08 57042 admin extra debootstrap_1.0.21_all.deb
204318870f77f3511078f08d743b78c4 18886 debian-installer extra debootstrap-udeb_1.0.21_all.udeb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCAAGBQJLgef+AAoJEOtw/vPN/G5PbVcP/1vCc2zd0Ii6VcPlOYxolzqt
2uQgFN4XFbghO35d5HC7qpfMWpNE43lGg/L4rB2kRbj94Amm/55o5BSi+Q98n95D
m/YwUxq59GsG7RQVQzbmCHvcwBU2Tqf1D0ejr0sX8DCA42B3OZ03NvqI5UsTUmA8
Pdc8ZabeK2elPW2cx+conMpIeE247TeeQY56oYWePd3FNht0RMY+jGBJb8LwifRP
urCGHtofLPlDfnnALt4e3+YcoPym0KdTM/R/AxAAMGAyN+zwaQXrvj9kyKJYA9ew
ckCaBAjpnNfUuIQlKFWK5TwZudo5hIrK4WnspfDPyQDXoVt2hEaTC8lpfv2JCCLh
k2kZK14BLN/ikAwFGLw+RN3kcwWXa1Oz2RkBCu0tAR8VZQAKMIqM8IpJzTMs2wHQ
oJCrITxrF7tXmkbFc5CAlwB/FyhuK8LoG+VSOSKNagDvCzYfyN2W4x4QbmwVr8+C
iaWqheOiRn3xesKJSSBE5lJtx/lj212i4M5vEB49g+9wbpLnJCThIax/Mj5DEA7k
12K420nr9nEUd/X7wS5EdtjICpDjL/Af3OuVmfqFFo+bcOVJi97el6SwAkd7Opth
j5cOnLQLmhOd5b6iYB0OkH/va73fWPb0gEFYRSpcsJM4UFzc23ZN/uwfgZjSNRxD
PX1xtc0L0D+QC9WcQ4EA
=IJqM
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 02 Apr 2010 07:32:47 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 13:09:14 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.