misc/58272: [patch] rc.d/diskless detection, dhcp rebuild

Matt Peterson matt at peterson.org
Tue Oct 21 13:40:34 PDT 2003


The following reply was made to PR misc/58272; it has been noted by GNATS.

From: Matt Peterson <matt at peterson.org>
To: FreeBSD-gnats-submit at freebsd.org
Cc: Dirk-Willem van Gulik <dirkx at webweaving.org>, dougb at freebsd.org,
	phk at freebsd.org
Subject: Re: misc/58272: [patch] rc.d/diskless detection, dhcp rebuild
Date: Tue, 21 Oct 2003 13:25:05 -0700

 Actually, we need to re-think this.  In our situation (again, not PXE
 boot, but CF card mounted read-only), dhclient is currently run after
 the diskless script (thus it can't plum the system's resolv.conf,
 hostnamed and related).  See below...
 
 <snip>
 Starting file system checks:
 /dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
 /dev/ad0s1a: clean, 78015 free (87 frags, 9741 blocks, 0.1%
 fragmentation)
 +++ mount_md of /var
 +++ populate /var using /etc/mtree/BSD.var.dist
 +++ create log files based on the contents of /etc/newsyslog.conf
 +++ create lastlog
 grep: /var/db/dhclient.leases: No such file or directory
 dhcp.host-name=""
 Hostname is 
 Setting hostname: template.barwn.org.
 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
         inet 127.0.0.1 netmask 0xff000000 
         inet6 ::1 prefixlen 128 
         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
 Starting dhclient.
 sis0: Applying short cable fix (reg=f5)
 sis0: Applying short cable fix (reg=f8)
 sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet6 fe80::200:24ff:fec0:5480%sis0 prefixlen 64 scopeid 0x2 
         inet 10.1.7.25 netmask 0xffffffe0 broadcast 10.1.7.31
         ether 00:00:24:c0:54:80
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
 </snip>
 
 How do you (rcNG folks) recommend we fix this?  I guess we can break
 diskless up into two scripts?


More information about the freebsd-bugs mailing list