touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #62991
[Bug 1432829] Re: resolvconf not updated correctly for interfaces configured in initramfs
possibly related...
likely related, I find that on this system
$ ls /run/network/ifstate
ls: cannot access /run/network/ifstate: No such file or directory
$ ifquery --state --all
Segmentation fault (core dumped)
$ sudo ifquery --state --all
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:98
inet addr:192.168.64.112 Bcast:192.168.95.255 Mask:255.255.224.0
inet6 addr: fe80::5054:ff:fe12:3498/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14050 errors:0 dropped:0 overruns:0 frame:0
TX packets:13591 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:152616463 (152.6 MB) TX bytes:1138294 (1.1 MB)
$ ls /run/network
ls: cannot access /run/network: No such file or directory
On an upstart system, /etc/init/iscsi-network-interface.conf
(http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/open-
iscsi/vivid/view/head:/debian/open-iscsi.iscsi-network-
interface.upstart) is what handles this.
I suspect we dont have such in a systemd system.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to resolvconf in Ubuntu.
https://bugs.launchpad.net/bugs/1432829
Title:
resolvconf not updated correctly for interfaces configured in
initramfs
Status in resolvconf package in Ubuntu:
New
Bug description:
maas images utilize cloud-initramfs-dyn-netconf . The way this works is basically:
* /etc/network/interfaces in image is a link to ../../run/network/dynamic-interfaces
* kernel command line 'ip=' convince the initramfs to bring up networking using 'ipconfig'
example: ip=::::maas-enlist:BOOTIF
* ipconfig writes files in /run/net-*.conf for each interface it configures.
* cloud-initramfs-dyn-netconf module writes /run/network/dyanmic-interfaces based on /run/net-*.conf files that 'ipconfig' creates.
end result is that after the move to real root,
/etc/network/interfaces should be a symlink to /run/ that ends up
having something like this:
| ## This file is generated by cloud-initramfs-dyn-netconf
| auto lo
| iface lo inet loopback
| manual eth0
| iface eth0 inet dhcp
| dns-nameservers 192.168.64.3
| dns-search maas
resolvconf seems not to be working as well as it should be. In vivid
(now using systemd), I have only the resolvconf header in the file.
in all other supported ubuntu releases, doing the above results in functional resolv.conf via resolv.conf. Seen here from trusty:
| # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
| # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
| nameserver 192.168.64.3
Related Bugs:
* bug 1432821: something deleting /run/network after during boot
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: resolvconf 1.69ubuntu1.1
ProcVersionSignature: Ubuntu 3.19.0-9.9-generic 3.19.1
Uname: Linux 3.19.0-9-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.7
Architecture: amd64
Date: Mon Mar 16 20:42:24 2015
PackageArchitecture: all
ProcEnviron:
TERM=vt102
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: resolvconf
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1432829/+subscriptions
References