NM config after PXE/NFS live CD install
Daniel Manrique
daniel.manrique at canonical.com
Wed Apr 10 15:50:00 UTC 2013
On 13-04-10 11:39 AM, Sven Ulland wrote:> On 04/10/2013 05:31 PM, Sven Ulland wrote:
>> ..but it never seemed to run, possibly due to poor handling of the \n.
Did you try changing for a simpler command (e.g. one that just echoes something
to the interfaces file) to ensure it's running *at all*?
Pass "debug-ubiquity" in your boot command line (in syslinux.cfg, in addition to
e.g. automatic-ubiquity) to get more debugging. Then, once the system is
installed, you can look in /var/log/installer and grep for the command you
added, to see if it's running.
>
> I should add that I verified the presence of the debconf parameter
> before starting the installer, to ensure that the url= preseed file
> was actually read into the debconf database. It's printed oddly, which
> could possibly explain the newline issues:
>
> # debconf-get-selections|grep -B1 loopback
> ubiquity ubiquity/success_command string \
> in-target sh -c "echo -e 'auto lo
> iface lo inet loopback' > /etc/network/interfaces"
>
> So it doesn't print the verbatim '\n' there, at least. I haven't
> checked how db_get or the Python modules return these values.
I'd try sidestepping the "\n" issue, you can use this command to delete the line
containing "auto eth0" and the following one (which I believe are the ones added
during the installation and that you'd want to eliminate):
ubiquity ubiquity/success-command string \
in-target sed -i -e '/auto eth0/,+2d' /etc/network/interfaces
I haven't really tested it but it should be more reliable.
>
> sven
>
More information about the Ubuntu-installer
mailing list