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

Bug#703747: marked as done (netcfg: preseed netcfg: confusion or regression about disable_dhcp, disable_autoconfig and use_autoconfig)

Your message dated Sun, 07 Apr 2013 22:03:43 +0000
with message-id <E1UOxgd-0007Hw-QF@franck.debian.org>
and subject line Bug#703747: fixed in netcfg 1.108
has caused the Debian Bug report #703747,
regarding netcfg: preseed netcfg: confusion or regression about disable_dhcp, disable_autoconfig and use_autoconfig
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

703747: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703747
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: netcfg
Version: 1.106
Severity: normal
Tags: d-i

Dear Maintainer,

   * What led up to the situation?

I have built a preseed.cfg file to perform an automated installation on a
Virtual Machine with a static IP address.
The original iso image was downloaded from:
amd64/current/images/netboot/mini.iso [built on 20130211]

Then the iso image has been rebuild with a custom initrd including the
file at its root, with:
# gunzip initrd.gz
# ls preseed.cfg | cpio --create --append --format newc --file initrd
# gzip --best initrd
# genisoimage [...]

I'm not an expert nor a wizard of preseeding, but enough familiar with this
to read and understand documentation. First of all, I have read this page:
where it is explicitly said:
'Use netcfg/disable_autoconfig instead of netcfg/disable_dhcp (#689531).'

This is confirmed by:
and even
/var/lib/dpkg/info/netcfg.templates in the initrd of the installer.

But with:
d-i netcfg/disable_autoconfig boolean true

netcfg still try DHCP first, and installation fails.

   * What exactly did you do (or not do) that was effective (or

I don't own an amd64 PC, so I have performed other tests with my i386 laptop. I
played with several sets of configuration in preseed.cfg or on boot command
line, with
the following, surprising results:

d-i netcfg/disable_autoconfig boolean true
-> doesn't work

d-i netcfg/use_autoconfig boolean false
-> doesn't work

d-i netcfg/disable_autoconfig boolean true
d-i netcfg/use_autoconfig boolean false
-> doesn't work

on boot cmdline: netcfg/disable_autoconfig=true netcfg/use_autoconfig=false
-> doesn't work

But with the official mini.iso (the same as above but for i386), without
preseed.cfg or
whatever, just on boot command line of the default menu entry:
-> leads me directly to the configuration of a static IP

Now, if I put this in a preseed.cfg:
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_ipaddress string
d-i netcfg/get_gateway string
d-i netcfg/get_nameservers string

it works like a charm

So, what about netcfg/use_autoconfig and netcfg/disable_autoconfig ?
Or what about the documentation ?
I don't understand.

The version of netcfg shipped in the downloaded mini.iso is 1.106;
there was a bugreport against the same program, version 1.92, to say that
d-i netcfg/disable_dhcp boolean true
fails [1]. Is 1.106 a regression ?

Now, to build a generic preseed.cfg file that could work with different
versions of the
installer, and to be sure DHCP config is skipped, I use:
d-i netcfg/disable_dhcp boolean true
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/use_autoconfig boolean false

knowing that at least one of them (and probably two) is useless; but how to
which, in advance...


[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688273

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-486
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

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

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

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 703747@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
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)

Hash: SHA1

Format: 1.8
Date: Sun, 07 Apr 2013 22:00:45 +0200
Source: netcfg
Binary: netcfg netcfg-static
Architecture: source amd64
Version: 1.108
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Philipp Kern <pkern@debian.org>
 netcfg     - Configure the network (udeb)
 netcfg-static - Configure a static network (udeb)
Closes: 688273 697890 703747
 netcfg (1.108) unstable; urgency=low
   [ Samuel Thibault ]
   * Do not set netcfg/use_autoconfig to true just because netcfg/disable_dhcp
     is false (which is the default), otherwise netcfg/disable_autoconfig has no
     effect. (Closes: #703747, #688273)
   [ Philipp Kern ]
   * Install iw whenever wireless-tools is installed on the target.
     Patch by Charles Plessy. (Closes: #697890)
   [ Updated translations ]
   * Amharic (am.po) by Tegegne Tefera
   * Croatian (hr.po) by Tomislav Krznar
   * Tamil (ta.po) by Dr.T.Vasudevan
 1b9539171e083f47d7d43f533c750ab95f8db16c 1520 netcfg_1.108.dsc
 bcc5f09f90f2ed37f6c7fc0059ad8d4cc344cf00 761952 netcfg_1.108.tar.gz
 0f7b86f521125cc0aa912ebb33c0b8eea91dde0b 425080 netcfg_1.108_amd64.udeb
 c2bc3ad40313441d11de9f639db9a546fdc66b4e 332918 netcfg-static_1.108_amd64.udeb
 3c3595ccaf02b0f918300bd3170378717ba803b2eadff1b50ad21cbbf0922bc5 1520 netcfg_1.108.dsc
 c98e128149ba6f837de4430b05b04be084e6b139ebbb4bf8dbc04c61ce1ac669 761952 netcfg_1.108.tar.gz
 a6e7a5e4a36d9e83f2e4645f9a6d96cb4786f93abcec36fabcceb24a45237682 425080 netcfg_1.108_amd64.udeb
 76be7ade542e061ea66e76b597c6b892334cfb4b7840252c2bd98c5680b74f4f 332918 netcfg-static_1.108_amd64.udeb
 c7515b78e549bcaf7ec8830d8262a093 1520 debian-installer optional netcfg_1.108.dsc
 1f41600b6b3f0816825404dce64068c7 761952 debian-installer optional netcfg_1.108.tar.gz
 b32d3a0401f5c60c0606b045724c9896 425080 debian-installer optional netcfg_1.108_amd64.udeb
 9f37fe70033ec7f446def2e698be53eb 332918 debian-installer optional netcfg-static_1.108_amd64.udeb

Version: GnuPG v1.4.12 (GNU/Linux)


--- End Message ---

Reply to: