[Bug 1361902] Re: 14.04 /etc/network/interfaces is always overwritten by Preseed

Mathieu FRAPPIER mathieu.frappier at gmail.com
Thu Jun 4 17:24:06 UTC 2015


Here is a quick and dirty workaround to put into a snippet in the
preseed_late execution:

cp /etc/network/interfaces /etc/network/interfaces.orig
echo "mv /etc/network/interfaces.orig /etc/network/interfaces && ifup -a && sed -i '/fixnet.sh/d' /etc/rc.local && rm -f /fixnet.sh" > /fixnet.sh
sed -i '/exit 0/ibash /fixnet.sh' /etc/rc.local

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netcfg in Ubuntu.
https://bugs.launchpad.net/bugs/1361902

Title:
  14.04 /etc/network/interfaces is always overwritten by Preseed

Status in netcfg package in Ubuntu:
  Fix Released

Bug description:
  
  I'm having trouble with my /etc/network/interfaces file that is
  overwritten by every Preseed install.

  I have found out that when I let the late_command crash and I manually
  enter some identifier in:

  /etc/network/interfaces

  and

  /target/etc/network/interfaces

  the one in /etc/network/interfaces stays there, so no overwriting from
  the target version in that case.

  the fix to place the following in the late_command doesn't fix it
  either:

  cp /target/etc/network/interfaces /etc/network/interfaces

  Any idea on how to fix this ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/1361902/+subscriptions



More information about the foundations-bugs mailing list