Your message dated Sun, 12 Feb 2012 21:33:08 +0000 with message-id <E1Rwh2i-0006t0-PZ@franck.debian.org> and subject line Bug#657640: fixed in live-build 3.0~a44-1 has caused the Debian Bug report #657640, regarding lb_chroot_resolv fails when /etc/resolv.conf is a symlink (resolvconf) 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.) -- 657640: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657640 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: lb_chroot_resolv fails when /etc/resolv.conf is a symlink (resolvconf)
- From: Stéphane Graber <stgraber@ubuntu.com>
- Date: Fri, 27 Jan 2012 11:43:10 -0500
- Message-id: <4F22D41E.5090702@ubuntu.com>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Package: src:live-build Hello, Ubuntu recently switched to using resolvconf by default, this change showed a small issue in live-build in the way it deals with existing /etc/resolv.conf, more specifically when it's a symlink. The current live-build script will do a "test -e" on /etc/resolv.conf which won't succeed when it's a dangling symlink. It then assumes it can simply copy the /etc/resolv.conf from the outside into the chroot but this makes cp fail (can't copy file to dangling symlink). The attached patch detected that /etc/resolv.conf in the chroot is a symlink and in such case, moves it aside to .orig but doesn't attempt to Truncate it (which would obviously fail). In the remove target, we now check for both -e and -L and restore the .orig copy of resolv.conf. - -- Stéphane Graber Ubuntu developer http://www.ubuntu.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCgAGBQJPItQeAAoJEMY4l01keS1nv5EP/A+xp5oJc21JyHnKi12upwMc WzIqVfK/3Eop/4nshOwCpMbt/Y605jaci/81rol0OCSCPgskAJ5a+rWMPxHdGfDp ZUpHL1a4GCVIbhlv1gW+qVJKGyiu86lt4R6b4vPQf8ILSKB+/+dugJ3FfLOF+BI7 qBQQE6RBFkeJwuQXaFJFNAJQgkNczOHhsv8xnRPwy/xsBzDPDXDzPYMYhI7wNiRn qcsZbuWxK0IRz6FvucZye7Gm3FBzgwHoIweXhYNWC+9Uk1PoujeAJq/kkweO/k0z WFdE/65lJ0BiJ73H7nAShOPsYuo14CpbT2Vv1bJMxKvaeUp/qonryQbfAh/LaRZc MeqiKxY2k/j7RocVJKI221dDfIm6B22cGYMFKkDrN30db7l8uV3fwn7i+iQEZH54 NLcCwp6myDRwiQIDhMfz4+JNYiu0MW7TkQROeBAG97fiD1nXIJA/1Uy5sc2HDezj n6jqzjuSwfyNAbOW4hMWu8Co/pn8QiDUjbYmwsgzQTHUZFUxUGiTUkxcEwTPAyi2 C1/kPlYeR2kXOGAqY2puYbGEVqdNoxGdigAvnYSyHx6ncK6oQD/BJhBzbGYQ7vtM wsxKZO09cMnGlKQenfWgCibU451FhHlFZA30D3nfExSglPBGyRs13I08cSiMvjgc zmtoIbho1jjyYd4WFuKv =SUm7 -----END PGP SIGNATURE-----diff -Nrup live-build-3.0~a42/scripts/build/lb_chroot_resolv new/scripts/build/lb_chroot_resolv --- live-build-3.0~a42/scripts/build/lb_chroot_resolv 2012-01-12 05:37:06.000000000 -0500 +++ new/scripts/build/lb_chroot_resolv 2012-01-27 11:22:54.220719008 -0500 @@ -51,6 +51,10 @@ case "${1}" in # If you want to have a custom resolv.conf, please # overwrite it with normal local_includes mechanism. Truncate chroot/etc/resolv.conf.orig + elif [ -L chroot/etc/resolv.conf ] + then + # Move resolv.conf aside if it's a symlink (likely resolvconf) + mv chroot/etc/resolv.conf chroot/etc/resolv.conf.orig fi if [ -f /etc/resolv.conf ] @@ -77,7 +81,7 @@ case "${1}" in # Copying local resolv.conf cp -a config/includes.chroot/etc/resolv.conf chroot/etc/resolv.conf rm -f chroot/etc/resolv.conf.orig - elif [ -e chroot/etc/resolv.conf.orig ] + elif [ -e chroot/etc/resolv.conf.orig ] || [ -L chroot/etc/resolv.conf.orig ] then # Restoring resolv file or symlink mv chroot/etc/resolv.conf.orig chroot/etc/resolv.confAttachment: resolvconf.diff.sig
Description: Binary data
--- End Message ---
--- Begin Message ---
- To: 657640-close@bugs.debian.org
- Subject: Bug#657640: fixed in live-build 3.0~a44-1
- From: Daniel Baumann <daniel@debian.org>
- Date: Sun, 12 Feb 2012 21:33:08 +0000
- Message-id: <E1Rwh2i-0006t0-PZ@franck.debian.org>
Source: live-build Source-Version: 3.0~a44-1 We believe that the bug you reported is fixed in the latest version of live-build, which is due to be installed in the Debian FTP archive: live-build-cgi_3.0~a44-1_all.deb to main/l/live-build/live-build-cgi_3.0~a44-1_all.deb live-build-cron_3.0~a44-1_all.deb to main/l/live-build/live-build-cron_3.0~a44-1_all.deb live-build_3.0~a44-1.debian.tar.gz to main/l/live-build/live-build_3.0~a44-1.debian.tar.gz live-build_3.0~a44-1.dsc to main/l/live-build/live-build_3.0~a44-1.dsc live-build_3.0~a44-1_all.deb to main/l/live-build/live-build_3.0~a44-1_all.deb live-build_3.0~a44.orig.tar.gz to main/l/live-build/live-build_3.0~a44.orig.tar.gz 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 657640@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Daniel Baumann <daniel@debian.org> (supplier of updated live-build 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: SHA1 Format: 1.8 Date: Sun, 12 Feb 2012 22:08:49 +0100 Source: live-build Binary: live-build live-build-cgi live-build-cron Architecture: source all Version: 3.0~a44-1 Distribution: unstable Urgency: low Maintainer: Debian Live Project <debian-live@lists.debian.org> Changed-By: Daniel Baumann <daniel@debian.org> Description: live-build - Debian Live - System build scripts live-build-cgi - Debian Live - System build scripts (CGI frontend) live-build-cron - Debian Live - System build scripts (cron autobuilder) Closes: 656404 657470 657640 658995 Changes: live-build (3.0~a44-1) unstable; urgency=low . * Handling /etc/resolv.conf even if it's a dangling symlink like with resolv.conf, thanks to Stephane Graber <stgraber@ubuntu.com> (Closes: #657640). * Adding updated Spanish debconf translations from Javier Fernández- Sanguino Peña <jfs@computer.org> (Closes: #656404). * Adding Dutch debconf translations from Jeroen Schot <schot@a- eskwadraat.nl> (Closes: #657470). * Correcting lzcat call in binary_disk to not bail out due to non- standard file extension (unknown suffix -- unchanged), thanks to Luigi Capriotti <l.capriotti@xbmc.org> (Closes: #658995). * Correcting destination path for uuid.conf when using casper in binary_disk, thanks to Luigi Capriotti <l.capriotti@xbmc.org> (Closes: #658995). * Removing warning about resolvconf package, not be needed anymore. * Adding a workaround in rules to stop dh_link converting absolute symlinks to relative symlinks for bootloader configs. * Adding lintian overrides for symlink-should-be-relative (bootloader configs need to use absolute symlinks on purpose to allow chrooted builds). Checksums-Sha1: 00f09e226da7472f073373cfd2e15fc972bf7e4f 1413 live-build_3.0~a44-1.dsc a9d1d8b927b98786f3a654170c3a5244cd0c744b 1847411 live-build_3.0~a44.orig.tar.gz d2ddf288aa81d0f02936be23eceb252d351b995a 61871 live-build_3.0~a44-1.debian.tar.gz 8b3e617dbced111356013a401f6e21fe5d116d39 1153192 live-build_3.0~a44-1_all.deb 601ca480c9ffbed97637dd4b465e7a1b86d5aa0b 66100 live-build-cgi_3.0~a44-1_all.deb 093c0c4202caadebec38736c87c4564e38a8fa08 72006 live-build-cron_3.0~a44-1_all.deb Checksums-Sha256: 5cf036849f04e0d1a9d287d79d70cb7166ffa085fa0628712d0bcde05da42c1b 1413 live-build_3.0~a44-1.dsc 1d8238ab5d1c0fd3485092924de5b5c96cef064760e62ac4dda79a2cf52a32ca 1847411 live-build_3.0~a44.orig.tar.gz 2de18aedfaaa9834aea1686a719f225bd0a064ed0eba027439ac54ba3e19c6ad 61871 live-build_3.0~a44-1.debian.tar.gz 5128dbbe6c9192bb45acb21116465204d8a382866805ba1f0b11c3173e699f79 1153192 live-build_3.0~a44-1_all.deb 002f23220a3080d1d8a6919f6987b33e376cb96e14b0c26540cdde779e4aa29e 66100 live-build-cgi_3.0~a44-1_all.deb 7bbbdb5b891c6d360f9f5e26a352b4dc72c2c0bfcd34fd6a310ab2092b54d4cc 72006 live-build-cron_3.0~a44-1_all.deb Files: 7ccc00e5fc93bdbe4b137eeb3903b3d3 1413 misc optional live-build_3.0~a44-1.dsc 684d5df796a7ca7fe63884af1edf9471 1847411 misc optional live-build_3.0~a44.orig.tar.gz 145b3899fc0b5fd6f9c977593dd0e13c 61871 misc optional live-build_3.0~a44-1.debian.tar.gz 91ee141abac9228d3a0d220a0fae2e62 1153192 misc optional live-build_3.0~a44-1_all.deb 8b3fe7fd6aee7d6beb5afe7122fca131 66100 misc optional live-build-cgi_3.0~a44-1_all.deb 21462c39ad22291855248c0f9834fad8 72006 misc optional live-build-cron_3.0~a44-1_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk84K7QACgkQ+C5cwEsrK55TPwCfdl0UyD9954rBkEp041CxzLOV baIAnRQWZ+aHOJI3mUDQ9R2/6QziIvbr =2qcy -----END PGP SIGNATURE-----
--- End Message ---