NM config after PXE/NFS live CD install

Sven Ulland sveniu at opera.com
Thu Apr 11 08:05:55 UTC 2013


On 04/10/2013 05:50 PM, Daniel Manrique wrote:
> 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*?

The wget command (previous post) worked out nicely.

> ubiquity ubiquity/success-command string \
> in-target sed -i -e '/auto eth0/,+2d' /etc/network/interfaces

This will likely work well too, but I'd prefer to negate the effect:
Remove everything but lo. With the interfaces file's syntax, though,
it would be safest to simply put the lo definition there, regardless
of what's currently in the file.

Going for something like sh -c "echo auto lo > interfaces; echo \
iface ... >> interfaces" could do the trick too.

The newline issue probably stems from not setting the debconf 'escape'
capability when inserting it into the database. Doing so might not
work anyway, since casper doesn't set that capability when populating
the db in the bottom preseed hook.

Anyway, I now have a working configuration and can play around with
that.

Thanks for the help!

sven



More information about the Ubuntu-installer mailing list