[Bug 1047722] [NEW] configure_networking net-DEVICE.conf in /run, but ipconfig writes in /tmp
Scott Moser
smoser at ubuntu.com
Sat Sep 8 03:34:31 UTC 2012
Public bug reported:
/usr/share/initramfs-tools/scripts/functions 's configure_networking
says:
# The NIC is to be configured if this file does not exist.
# Ip-Config tries to create this file and when it succeds
# creating the file, ipconfig is not run again.
for x in /run/net-"${DEVICE}".conf /run/net-*.conf ; do
[ -e "$x" ] && break 2
done
Ie, it is expecting /run/net-* to be written, but ipconfig in kblic-
utils in precise is writing that file to /tmp.
See:
(initramfs) uname -r
3.2.0-29-generic
(initramfs) ipconfig ip=dhcp
IP-Config: eth0 hardware address 52:54:00:12:34:01 mtu 1500 DHCP RARP
IP-Config: eth0 complete (from 192.168.1.1):
address: 192.168.1.8 broadcast: 192.168.1.255 netmask: 255.255.255.0
gateway: 192.168.1.1 dns0 : 10.55.63.48 dns1 : 0.0.0.0
rootserver: 192.168.1.1 rootpath:
filename : pxelinux.0
(initramfs) cat /tmp/net-eth0.conf
DEVICE='eth0'
IPV4ADDR='192.168.1.8'
IPV4BROADCAST='192.168.1.255'
IPV4NETMASK='255.255.255.0'
IPV4GATEWAY='192.168.1.1'
IPV4DNS0='10.55.63.48'
IPV4DNS1='0.0.0.0'
HOSTNAME=''
DNSDOMAIN=''
NISDOMAIN=''
ROOTSERVER='192.168.1.1'
ROOTPATH=''
filename='pxelinux.0'
The bug report was collected on quantal, but the above is from precise. Per slangasek:
| fixed in quantal; seems klibc-utils and initramfs-tools were out of
| sync on this in precise
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: initramfs-tools 0.103ubuntu0.1
ProcVersionSignature: User Name 3.5.0-13.14-generic 3.5.3
Uname: Linux 3.5.0-13-generic x86_64
ApportVersion: 2.5.1-0ubuntu7
Architecture: amd64
Date: Sat Sep 8 03:28:37 2012
Ec2AMI: ami-00000148
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: klibc (Ubuntu)
Importance: Medium
Status: Fix Released
** Affects: klibc (Ubuntu Precise)
Importance: Medium
Status: Confirmed
** Tags: amd64 apport-bug ec2-images quantal
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1047722
Title:
configure_networking net-DEVICE.conf in /run, but ipconfig writes in
/tmp
Status in “klibc” package in Ubuntu:
Fix Released
Status in “klibc” source package in Precise:
Confirmed
Bug description:
/usr/share/initramfs-tools/scripts/functions 's configure_networking
says:
# The NIC is to be configured if this file does not exist.
# Ip-Config tries to create this file and when it succeds
# creating the file, ipconfig is not run again.
for x in /run/net-"${DEVICE}".conf /run/net-*.conf ; do
[ -e "$x" ] && break 2
done
Ie, it is expecting /run/net-* to be written, but ipconfig in kblic-
utils in precise is writing that file to /tmp.
See:
(initramfs) uname -r
3.2.0-29-generic
(initramfs) ipconfig ip=dhcp
IP-Config: eth0 hardware address 52:54:00:12:34:01 mtu 1500 DHCP RARP
IP-Config: eth0 complete (from 192.168.1.1):
address: 192.168.1.8 broadcast: 192.168.1.255 netmask: 255.255.255.0
gateway: 192.168.1.1 dns0 : 10.55.63.48 dns1 : 0.0.0.0
rootserver: 192.168.1.1 rootpath:
filename : pxelinux.0
(initramfs) cat /tmp/net-eth0.conf
DEVICE='eth0'
IPV4ADDR='192.168.1.8'
IPV4BROADCAST='192.168.1.255'
IPV4NETMASK='255.255.255.0'
IPV4GATEWAY='192.168.1.1'
IPV4DNS0='10.55.63.48'
IPV4DNS1='0.0.0.0'
HOSTNAME=''
DNSDOMAIN=''
NISDOMAIN=''
ROOTSERVER='192.168.1.1'
ROOTPATH=''
filename='pxelinux.0'
The bug report was collected on quantal, but the above is from precise. Per slangasek:
| fixed in quantal; seems klibc-utils and initramfs-tools were out of
| sync on this in precise
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: initramfs-tools 0.103ubuntu0.1
ProcVersionSignature: User Name 3.5.0-13.14-generic 3.5.3
Uname: Linux 3.5.0-13-generic x86_64
ApportVersion: 2.5.1-0ubuntu7
Architecture: amd64
Date: Sat Sep 8 03:28:37 2012
Ec2AMI: ami-00000148
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/1047722/+subscriptions
More information about the foundations-bugs
mailing list