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

Bug#698626: marked as done (Preseeding netcfg/enable doesn't work)



Your message dated Sat, 09 Feb 2013 19:17:54 +0000
with message-id <E1U4Fvu-0004YH-BV@franck.debian.org>
and subject line Bug#698626: fixed in netcfg 1.106
has caused the Debian Bug report #698626,
regarding Preseeding netcfg/enable doesn't work
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.)


-- 
698626: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698626
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: netcfg
Version: 1.103

I preseed the installer with "d-i netcfg/enable boolean false".

netcfg 1.103 ignores it at two places and writes the file /etc/network/interfaces. The second write in finish-install.d/55netcfg-copy-config overwrites my own interface config. I fixed it with the attached patch. Preseeding netcfg/enable worked with squeeze.

Regards
Stefan

...
Jan 18 11:43:51 debootstrap: Setting up tasksel (3.14) ...
Jan 18 11:43:51 debootstrap: Setting up tasksel-data (3.14) ...
Jan 18 11:43:52 apt-install: Queueing package keyboard-configuration for later installation
Jan 18 11:43:52 apt-install: Queueing package console-setup for later installation
Jan 18 11:43:52 netcfg[21719]: INFO: Starting netcfg v.1.103 (built 20121210-1746)
Jan 18 11:43:52 netcfg[21719]: DEBUG: No interface given; clearing /etc/network/interfaces
Jan 18 11:43:52 netcfg[21719]: DEBUG: Writing informative header
Jan 18 11:43:52 netcfg[21719]: DEBUG: Success!
Jan 18 11:43:52 netcfg[21719]: DEBUG: Writing loopback interface
Jan 18 11:43:52 netcfg[21719]: DEBUG: Success!
Jan 18 11:43:52 base-installer: Using CD-ROM mount point /media/cdrom/
...
Jan 18 12:07:47 cdrom-detect: Unmounting and ejecting '/dev/sr0'
Jan 18 12:07:47 finish-install: info: Running /usr/lib/finish-install.d/20final-message
Jan 18 12:07:55 finish-install: info: Running /usr/lib/finish-install.d/30hw-detect
Jan 18 12:07:55 finish-install: info: Running /usr/lib/finish-install.d/50config-target-network
Jan 18 12:07:55 finish-install: info: Running /usr/lib/finish-install.d/55netcfg-copy-config
Jan 18 12:07:55 in-target: dpkg-query: no packages found matching network-manager
Jan 18 12:07:55 finish-install: cat: can't open '/tmp/connection_type': No such file or directory
Jan 18 12:07:55 finish-install: cat: can't open '/tmp/connection_type': No such file or directory
Jan 18 12:07:55 netcfg[2884]: INFO: Starting netcfg v.1.103 (built 20121210-1746)
Jan 18 12:07:55 netcfg[2884]: DEBUG: No interface given; clearing /etc/network/interfaces
Jan 18 12:07:55 netcfg[2884]: DEBUG: Writing informative header
Jan 18 12:07:55 netcfg[2884]: DEBUG: Success!
Jan 18 12:07:55 netcfg[2884]: DEBUG: Writing loopback interface
Jan 18 12:07:55 netcfg[2884]: DEBUG: Success!
Jan 18 12:07:55 finish-install: info: Running /usr/lib/finish-install.d/60cleanup
Jan 18 12:07:55 finish-install: info: Running /usr/lib/finish-install.d/65partman-md
Jan 18 12:07:55 finish-install: info: Running /usr/lib/finish-install.d/90base-installer
Jan 18 12:07:55 finish-install: info: Running /usr/lib/finish-install.d/90console
Jan 18 12:07:55 finish-install: info: Running /usr/lib/finish-install.d/94save-logs
diff -uNrp netcfg-1.103/finish-install.d/55netcfg-copy-config netcfg-1.103+nmu1/finish-install.d/55netcfg-copy-config
--- netcfg-1.103/finish-install.d/55netcfg-copy-config	2012-12-03 21:55:19.000000000 +0100
+++ netcfg-1.103+nmu1/finish-install.d/55netcfg-copy-config	2013-01-18 16:45:35.424024352 +0100
@@ -3,6 +3,12 @@ set -e
 
 . /usr/share/debconf/confmodule
 
+db_get netcfg/enable
+
+if [ "$RET" = "false" ]; then
+  exit 0
+fi
+
 # File paths for various configuration files
 FILE_PATH_NM_CONFIG=etc/NetworkManager/system-connections
 FILE_INTERFACES=/etc/network/interfaces

--- End Message ---
--- Begin Message ---
Source: netcfg
Source-Version: 1.106

We believe that the bug you reported is fixed in the latest version of
netcfg, 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 698626@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Philipp Kern <pkern@debian.org> (supplier of updated netcfg 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: Sat, 09 Feb 2013 20:06:18 +0100
Source: netcfg
Binary: netcfg netcfg-static
Architecture: source amd64
Version: 1.106
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Philipp Kern <pkern@debian.org>
Description: 
 netcfg     - Configure the network (udeb)
 netcfg-static - Configure a static network (udeb)
Closes: 698626
Changes: 
 netcfg (1.106) unstable; urgency=low
 .
   * finish-install.d/55netcfg-copy-config: Exit if connection type
     information was not written by netcfg. This preserves the
     generated /etc/network/interfaces on kFreeBSD. It will also
     preserved files generated by users between base install and
     finishing. (Closes: #698626)
Checksums-Sha1: 
 b7453fd730d5f0fa2536ddec1a092ec46ece4a19 1522 netcfg_1.106.dsc
 9e1948123edb0b8e14313b3a9b8aef337e894cdb 755638 netcfg_1.106.tar.gz
 ec3f37ab29e65be607fb63d68a3cf1a51f4f8e9a 424160 netcfg_1.106_amd64.udeb
 1560e5218a97a3ff85eb4be32b3d21bdc9572205 332104 netcfg-static_1.106_amd64.udeb
Checksums-Sha256: 
 8da76552c0491907d476c3b21f7a02fc85648237cddd0bc5339c3d4e5e8a0100 1522 netcfg_1.106.dsc
 2aabf0910269e1cc1a9a5853786aa2481c7105c26701c9fca33ab6c5e92674eb 755638 netcfg_1.106.tar.gz
 26fd70629aed385fc2320727918b43df6f3977f9428a70cdc2866cd3e47e10a8 424160 netcfg_1.106_amd64.udeb
 e7a13bfbf99206614e78256ebf993b29b511a0b0aaff01beeaa8fd8953b5bea7 332104 netcfg-static_1.106_amd64.udeb
Files: 
 e77459e241f76440a02cbb587352ee34 1522 debian-installer optional netcfg_1.106.dsc
 8dd8347bb495d586e89a2f2f4193f56f 755638 debian-installer optional netcfg_1.106.tar.gz
 6462aed064d8c5cdf2a4cbc70d302297 424160 debian-installer optional netcfg_1.106_amd64.udeb
 2c571d8ee9b1d38d879d586b12212073 332104 debian-installer optional netcfg-static_1.106_amd64.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBCAAGBQJRFp5bAAoJEERuJUU10FbsBYQH/RfLRuRBrf7tnegKpQ0xiear
4+5wJ6ssFx/ECeLmeoFm9MhAb9yECIhhSkmwDvXltKEYVhMkFaqK/bGC59oC4KAa
6vZPQrb9hLyZtofqpXbTvjr/0SoXWK1t9Ph4gNwwk4zWp2lvZFRhthSDsW/kIdNp
ipK3rzp5nUbFQNahUM0un2LpsXGRrNhcx3bphvmPbnmXDjMkgOfdRfJ2dqAqe4gz
xXY2UPYqof564FPHNF53b/umY4B1tr7ax6ZWWSAGBcngb0EK4NlqQKLk3UMrtiBa
d7uPBWUWRhp7lN/XZ95Jy+1PFLW8ztzIJhVdloUkGOVtmllkK48pKADKfejRYbw=
=1+IN
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: