tag 594208 + patch thanks * Reinhard Tartler <[email protected]> [Die Aug 24, 2010 at 03:33:54 +0000]:
> I'm trying to boot a KVM over the net with a FAI created nfsroot. The > boot procedure fails with an error message that instructs me to file this bug. > In /live.log I see the following error message: > /init: /tmp/net-eth0.conf: line 9: int-domain2.priv: not found > the contents of /tmp/net-eth0.conf look like this: > DEVICE=eth0 > IPV4ADDR=192.168.24.39 > IPV4BROADCAST=192.168.24.255 > IPV4NETMASK=255.255.255.0 > IPV4GATEWAY=192.168.24.254 > IPV4DNS0=192.168.24.10 > IPV4DNS1=192.168.24.254 > HOSTNAME= > DNSDOMAIN=int-domain1.priv int-domain2.priv example.de example.com > NISDOMAIN= > ROOTSERVER=192.168.24.1 > ROOTPATH= > filename="pxelinux.0" > I guess the problem is that the variable DNSDOMAIN lacks quotes "". > Is there a workaround to that problem? The attached trivial patch addresses this issue (tested by Reinhard). regards, -mika-
--- klibc-1.5.18/usr/kinit/ipconfig/main.c 2010-04-22 02:08:49.000000000 +0200 +++ klibc-1.5.18.mika/usr/kinit/ipconfig/main.c 2010-08-24 17:41:42.000000000 +0200 @@ -115,7 +115,7 @@ fprintf(f, "IPV4DNS1=%s\n", my_inet_ntoa(dev->ip_nameserver[1])); fprintf(f, "HOSTNAME=%s\n", dev->hostname); - fprintf(f, "DNSDOMAIN=%s\n", dev->dnsdomainname); + fprintf(f, "DNSDOMAIN=\"%s\"\n", dev->dnsdomainname); fprintf(f, "NISDOMAIN=%s\n", dev->nisdomainname); fprintf(f, "ROOTSERVER=%s\n", my_inet_ntoa(dev->ip_server)); fprintf(f, "ROOTPATH=%s\n", dev->bootpath);
signature.asc
Description: Digital signature

