Comment 16 for bug 1556241

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-03-22 12:48 EDT-------
OK, I found the cause. :-)

/lib/systemd/system/ubuntu-snappy.firstboot.service writes the file /etc/network/interfaces.d/encf5f0 on first reboot - and write the dhcp statement also. See the attached strace log, line 274-283:
openat(AT_FDCWD, "/etc/network/interfaces.d", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/etc/network/interfaces.d/encf5f0.M1yTYCQL5bt5", O_WRONLY|O_CREAT|O_EXCL|O_TRUNC|O_CLOEXEC, 0644) = 6
write(6, "allow-hotplug encf5f0\niface encf5f0 inet dhcp\n", 46) = 46
fsync(6) = 0
futex(0x2aa3b1d73b0, FUTEX_WAKE, 1) = 1
renameat(AT_FDCWD, "/etc/network/interfaces.d/encf5f0.M1yTYCQL5bt5", AT_FDCWD, "/etc/network/interfaces.d/encf5f0") = 0
fsync(5) = 0
futex(0x2aa3b1d73b0, FUTEX_WAKE, 1) = 1
close(6) = 0
close(5)

ubuntu-snappy.firstboot.service must consider a static configuration of an interface, but it does not. Please fix this, if possible for the upcoming Beta version!