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

Bug#514916: Not really (was Re: It seems to be related to another package)



On Thu, Feb 12, 2009 at 09:40:03AM +0100, Marco Amadori wrote:
> On Wednesday 11 February 2009, 22:10:25, rpowell wrote:
> 
> > Package: live-initramfs
> 
> > The following patch makes everything work in my environment, and I
> > believe will still work in single-NIC setups:
> 
> > ***
> > /srv/fai/nfsroot/live/filesystem.dir/usr/share/initramfs-tools/scripts/func
> >tions    Wed Jan  7 06:14:37 2009 ---
> > /srv/fai/broken/initramfs-tools_scripts_functions   Wed Feb 11 12:56:23
> 
> Thanks for the patch but it applies to a file which belongs to
> "initramfs-tools", not "live-initramfs" which is an extension (or
> an hook) of the former.

The real problem is with scripts/live, though, which *is* in
live-initramfs:

$ dpkg -S /usr/share/initramfs-tools/scripts/live
live-initramfs: /usr/share/initramfs-tools/scripts/live

I would like to think that two Debian packages could work to fix
something at the same time.  :)

However, the problem can be fixed solely in live-initramfs, like so:

--- /srv/fai/nfsroot/live/filesystem.dir/usr/share/initramfs-tools/scripts/live 2009-02-08 06:09:09.000000000 -0800
+++ /srv/fai/broken/initramfs-tools_scripts_live        2009-02-12 11:26:04.000000000 -0800
@@ -699,11 +699,17 @@
                udevsettle
        fi

-       ipconfig ${DEVICE} | tee /netboot.config
+       # We don't necessarily know which NIC we should be using
+       DEVICE=''
+
+       # make /scripts/live use configure_networking just like /scripts/nfs
+       # does; this sources /tmp/net-*.conf as well
+       ipconfig -t 60 all
+       ipconfig -t 60 all
+       ipconfig -t 60 all
+
+       . /tmp/net-*.conf

-       # source relevant ipconfig output
-       OLDHOSTNAME=${HOSTNAME}
-       . /tmp/net-${DEVICE}.conf
        [ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME}
        export HOSTNAME






Reply to: