network interfaces file is overwritten by a default when creating an iso?

Asked by fossfreedom

I'm trying to create a static /etc/network/interfaces config which is preserved when an iso is created.

However it appears that isomaster is replacing this file with a default:

"
foss@ubuntu:/etc/network$ more interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
foss@ubuntu:/etc/network$ "

is this a correct observation?

Any thoughts upon how I can preserve the customised interfaces file when an iso is generated by systemback?

Question information

Language:
English Edit question
Status:
Solved
For:
Systemback Edit question
Assignee:
No assignee Edit question
Solved by:
fossfreedom
Solved:
Last query:
Last reply:
Revision history for this message
Kendek (nemh) said :
#1

Yes, this is happen because the /usr/share/initramfs-tools/scripts/casper-bottom/23networking Casper script. Just remove execute permissions (chmod 644) before creating Live image. Or just see the file contents and use 'STATICIP' variable with 'frommedia' value.

Revision history for this message
fossfreedom (fossfreedom) said :
#2

yes - thanks again.

setting the grub boot option "ip=frommedia" did the trick.

cheers!