[PATCH] /etc/resolv.conf not created in initrd during network boot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Daniel,
The net-eth*.conf created by ipconfig is now in /run, no more in /tmp
[1], and this makes /etc/resolv.conf not be created in initrd during
network boot.
Attached please find the patch for live-boot-3.0~a38-1.
My 2 cents.
[1]. Please refer to the function "configure_networking" in
/usr/share/initramfs-tools/scripts/functions of initramfs-tools version
0.107.
Steven.
- --
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlAd0CYACgkQCLPj15didVrVzACeIjkmKSOMPe4ZWMQc63BgaAa2
A58AnihQ60jD2HXUHRl80+cC/nkg5hwL
=Sgxr
-----END PGP SIGNATURE-----
--- 9990-networking.sh.orig 2012-07-19 06:13:57.000000000 +0800
+++ 9990-networking.sh.new 2012-08-05 09:22:21.000000000 +0800
@@ -110,7 +110,7 @@
else
for interface in ${DEVICE}; do
ipconfig -t "$ETHDEV_TIMEOUT" ${interface} | tee /netboot-${interface}.config
- [ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf
+ [ -e /run/net-${interface}.conf ] && . /run/net-${interface}.conf
if [ "$IPV4ADDR" != "0.0.0.0" ]
then
break
@@ -122,7 +122,7 @@
do
# source relevant ipconfig output
OLDHOSTNAME=${HOSTNAME}
- [ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf
+ [ -e /run/net-${interface}.conf ] && . /run/net-${interface}.conf
[ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME}
export HOSTNAME
Reply to: