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

Bug#538265: marked as done (Add disable netcfg preseed option)



Your message dated Mon, 22 Feb 2010 03:36:51 +0000
with message-id <E1NjP6J-0003tx-FO@ries.debian.org>
and subject line Bug#538265: fixed in netcfg 1.52
has caused the Debian Bug report #538265,
regarding Add disable netcfg preseed option
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.)


-- 
538265: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538265
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: netcfg
Version: 1.46
Severity: wishlist
Tags: lenny

I have a situation where I want to use a single, custom debian installer initrd, but want to preseed network configuration differences between production cdrom and development netboot installers.

The systems in the field should not have networking enabled at all. With the stock Lenny installer, on systems with wireless cards and no proprietary firmware blobs, you get scary red error screens during the install complaining about network errors. If you add the firmware blobs to the d-i just to shut up the errors, and if the hardware switch is turned off, you again get scary red error screens about network errors.

I don't want *any* networking on the cdrom installs, but I also want to use a consistent initrd between development and production to avoid possible bugs from using different installers.

Enter this patch. It allows me to optionally disable network configuration completely via preseed on the cdrom install, but leaves the default to enabled for netboot. The attached patch may be a horrible, ugly hack based on the d-i design, but it works for me. If you don't like this patch, can you add a similar capability going forward?
Thanks!

Tony

diff -urN netcfg-1.46.orig/debian/netcfg-common.templates netcfg-1.46/debian/netcfg-common.templates
--- netcfg-1.46.orig/debian/netcfg-common.templates	2008-08-09 19:34:13.000000000 +0000
+++ netcfg-1.46/debian/netcfg-common.templates	2009-07-24 15:27:30.000000000 +0000
@@ -1,3 +1,12 @@
+Template: netcfg/enable_netcfg
+Type: boolean
+Default: true
+# :sl1:
+_Description: Enable network configuration during Install?
+ This option can be preseeded for cdrom installs and will cause the
+ installer to ignore any network configurations. Note that after the
+ install, the user must manually configure any networking options.
+
 Template: netcfg/use_dhcp
 Type: boolean
 Default: true
Binary files netcfg-1.46.orig/debian/.netcfg-common.templates.swp and netcfg-1.46/debian/.netcfg-common.templates.swp differ
diff -urN netcfg-1.46.orig/netcfg.c netcfg-1.46/netcfg.c
--- netcfg-1.46.orig/netcfg.c	2008-08-09 19:34:15.000000000 +0000
+++ netcfg-1.46/netcfg.c	2009-07-24 15:33:28.000000000 +0000
@@ -78,6 +78,12 @@
     /* initialize debconf */
     client = debconfclient_new();
     debconf_capb(client, "backup");
+
+    /* Check to see if netcfg should be run at all */
+    debconf_get(client, "netcfg/enable_netcfg");
+    if ( strcmp(client->value, "false") == 0 ) {
+        netcfg_write_loopback();
+        return 0;
+    }
     
     /* always always always default back to DHCP, unless you've specified
      * disable_dhcp on the command line. */

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

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:

netcfg-static_1.52_amd64.udeb
  to main/n/netcfg/netcfg-static_1.52_amd64.udeb
netcfg_1.52.dsc
  to main/n/netcfg/netcfg_1.52.dsc
netcfg_1.52.tar.gz
  to main/n/netcfg/netcfg_1.52.tar.gz
netcfg_1.52_amd64.udeb
  to main/n/netcfg/netcfg_1.52_amd64.udeb



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 538265@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 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: Sun, 21 Feb 2010 23:02:42 -0300
Source: netcfg
Binary: netcfg netcfg-static
Architecture: source amd64
Version: 1.52
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Otavio Salvador <otavio@debian.org>
Description: 
 netcfg     - Configure the network (udeb)
 netcfg-static - Configure a static network (udeb)
Closes: 538265 566006
Changes: 
 netcfg (1.52) unstable; urgency=low
 .
   [ Aurelien Jarno ]
   * Loopback network interface name is lo on GNU/Linux and lo0 on
     GNU/kFreeBSD; generalize it with a macro.
   * Build the netcfg binary package on sh4.
 .
   [ Otavio Salvador ]
   * Add support to disable network configuration using preseeding in
     netcfg/enable template. Thanks to Anthony L. Awtrey
     <tony@awtrey.com> for the patch. Closes: #538265
 .
   [ Colin Watson ]
   * On Linux, feed the output of 'ip addr show' into /dev/random after the
     network is up to improve entropy. Idea picked up from Theodore Y. Ts'o,
     http://lkml.org/lkml/2007/12/8/108.
   * Upgrade to debhelper v7.
   * Tell dhclient to wait for netcfg/dhcp_timeout seconds before exiting
     (closes: #566006, LP: #315231).
 .
   [ Otavio Salvador ]
   * Use busybox' udhcpc by default but kfreebsd-amd64 and kfreebsd-i386
     since they lack support in busybox at this moment.
 .
   [ Frans Pop ]
   * Remove no longer needed Lintian override for missing Standards-
     Version field.
   * Disable wireless support for s390.
   * Fix FTBS on s390 caused by upgrade to debhelper v7.
   * Drop support for the discontinued lpia architecture.
   * Improve test for presence of dhcp/dhcp3.
   * Don't ship unnecessary/unused dhcp directories.
Checksums-Sha1: 
 ef29b921d8dcc5e9eea23b046a34235fa7e8076e 1697 netcfg_1.52.dsc
 9a995fcce6c17074155ffaf17a620952104c15d1 379242 netcfg_1.52.tar.gz
 b6eb7784ccda92d2c0cc1dbfcbaa9d676e78c33b 304134 netcfg_1.52_amd64.udeb
 29b00f44f1743cd41513f342ca2b5677dc991e51 234970 netcfg-static_1.52_amd64.udeb
Checksums-Sha256: 
 40691e30884b7f1d61530ba8d424386ba6865052fba53415fac6761d54f94f8c 1697 netcfg_1.52.dsc
 d67522a2c3fb929f5c572e855f582b56ad1caa331309dafa02b44df6abc72d7e 379242 netcfg_1.52.tar.gz
 cfd831afbe53e975fa4373823a0d808ebf38bde3b188c17fc94683a74d1fc766 304134 netcfg_1.52_amd64.udeb
 74adf3259bdef9419b2c09d5c6fc71b992d1790705b922bf419e232906779565 234970 netcfg-static_1.52_amd64.udeb
Files: 
 62cd5c31366c35fd040cfa846c111e10 1697 debian-installer optional netcfg_1.52.dsc
 3ccf7f0d4435118d4edf2fa9e6842f5a 379242 debian-installer optional netcfg_1.52.tar.gz
 8bb6a26a9ce528a7d4ecc16d43fea9d9 304134 debian-installer optional netcfg_1.52_amd64.udeb
 e23bcfd27c5074b637d43e235aa7d11f 234970 debian-installer optional netcfg-static_1.52_amd64.udeb
Package-Type: udeb

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

iQIcBAEBCAAGBQJLgebyAAoJEOtw/vPN/G5P7YgQAJa3bphTak27xm5Xcul8eSgu
srzr8tIlXV48UntC7hfUpH+JQxeaVol74OJOpLjsWWXYvyj/2BSuiTOd7nuy15N2
UWStaxw/sehbn18qsRaQvQJjY/SxNablGmuhqtsBy8WPGElMTBWaGWo12argLIvV
+McGQDZe2Qs4O4jxiVgWYQDj3Rl4WwO+s/ddyuo+Hxzj4CVDod+iuU4kzqU2Zbxq
9aoD6G2eSj+OUEbh+NiMenlZ2L8GyI8bx/0eR8HbS+4bpQs4I5e1XHGJTf0ylzQ9
eGixb1UBZOFqqdKqfCk077z20/fcWwYEBvbvv7q2s0nF+UeddTKi1MiA9GXhWxSl
obccSjZGUHu9K4YEpmo8l7BDi9U8UbEjnaweTmHuYPIXpKrPxphd702mC84dnwi5
kPiAOyRm95zZTTL8EzzWFPciwWJATvSCNqwckVW+zraBtdPXuq4k47/M1poYv58U
FFy0MJyzM442oo4rQcB15RDJGSaKiucM/83vL8eS33cX+cNfI3Cngo8g2VQW8n7W
/mF4gYxm4+YrVZPCdVmy+hfci2nkPIlCaEgXHkYao9vre93ChaAfP14/6BXn2BGH
8vtECFuD7o/0Qx1+lMpxDFCmJDXVE98ukbHFRUoZCUgHnFbYfYKsloNlXPMHFq5V
4lOwAH+2q3UDAr4b7RBj
=Q19t
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: