14.04 /etc/network/interfaces is always overwritten by Preseed
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | netcfg (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
I'm having trouble with my /etc/network/
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/
and
/target/
the one in /etc/network/
the target version in that case.
the fix to place the following in the late_command doesn't fix it either:
cp /target/
Any idea on how to fix this ?
| YamakasY (yamakasi-014) wrote : | #2 |
it seems that this bug is still there ?
Any ideas about this ?
| Mike Purvis (mikepurvis) wrote : | #3 |
I tried adding "d-i netcfg/
| Leontiy Istomin (listomin) wrote : | #4 |
To avoid this issue you need to add the following line to /var/lib/
d-i netcfg/
I've added the line as 16 string.
build 6.1-192
| Leontiy Istomin (listomin) wrote : | #5 |
I was wrong the issue can't be fixed using this line:
d-i netcfg/
| tags: | added: scale |
Here is a quick and dirty workaround to put into a snippet in the preseed_late execution:
cp /etc/network/
echo "mv /etc/network/
sed -i '/exit 0/ibash /fixnet.sh' /etc/rc.local
| dayanand (libradayanand) wrote : | #7 |
For the past months I've installed Ubuntu 14.04 server by using kickstart. In the post-part of the kickstart-script I lounche a shell-script that do some system config, everything has worked fine so fare. Now I've started testing 14.04 and there is one thing that do not work the same way as in 14.04! I rewrite a new /etc/network/
Is the above suggestions works??
| Karthikeyan (karthamb) wrote : | #8 |
Thanks, Mathieu FRAPPIER. Your solution works for me. But network share is not mounted at first, need to reboot the machine again to see the network share.
| Karthikeyan (karthamb) wrote : | #9 |
Added mount -a in your script and its working.
echo "mv /root/interfaces /etc/network/
sed -i '/exit 0/ibash /fixnet.sh' /etc/rc.local
echo NM Disabled >> /root/finished.log


This bug was fixed in the package netcfg - 1.119ubuntu1
---------------
netcfg (1.119ubuntu1) utopic; urgency=medium
* Resynchronise with Debian. Remaining changes: client- udeb on all architectures. interfaces. ) run/resolvconf/ resolv. conf to outside the target so that when /run is dhcpv6_ timeout and running dhclient in one-shot mode (-1).
- Set default hostname to 'ubuntu'.
- Set priority for get_domain to high for static configurations.
- Set priority for get_domain to medium for non-static configurations.
- Use 'auto <interface>' for all interfaces, dropping allow-hotplug
which doesn't work with current udev.
- Set DHCP and DHCPv6 timeout to 30s.
- Use isc-dhcp-
- Flush all addresses and routes before configuring interfaces
(LP: #848072)
- Don't copy /etc/resolv.conf to target if resolvconf is installed. (We
already write resolvconf configuration to /etc/network/
- Add a post-base-install hook to detect resolvconf and copy
/
bind-mounted DNS resolving continues to work. (LP: #926447)
- Apply patch from Alec Warner making netcfg respect
netcfg/
(LP: #917905)
- Fix FTBFS by checking the return value of fgets and fscanf.
- Fix nm-conf to generate a valid NetworkManager static configuration
file.
netcfg (1.119) unstable; urgency=medium
[ Colin Watson ] interfaces to /target if target_ network_ config= ifupdown; it's already been copied by the etc/network/ interfaces in a preseed file (closes:
* Don't copy /etc/network/
netcfg/
base-installer hook earlier, and copying it again makes it hard to
modify /target/
#709017, LP: #1361902).
* Fix BOOTIF detection to handle the newline at the end of a line read
from /proc/cmdline (LP: #1350302).
[ Updated translations ]
* Estonian (et.po) by Mattias Põldaru
netcfg (1.118) unstable; urgency=high
* Fix support for entering an ESSID manually, it was previously
getting ignored (Closes: #757478). Thanks to James Cowgill for the
report and the patch!
netcfg (1.117) unstable; urgency=low
* Add lintian overrides for untranslatable debconf templates. I like
when packages are lintian-clean...
[ Updated translations ]
* Bosnian (bs.po) by Amila Valjevčić
-- Colin Watson <email address hidden> Thu, 28 Aug 2014 12:42:06 -0700