NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/47776: dhcpcd(8) requries hostname(1)



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

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: roy%marples.name@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: bin/47776: dhcpcd(8) requries hostname(1)
Date: Sat, 25 May 2013 10:41:59 +0900

 >  > "sysctl -w kern.hostname=FOO" works at least on NetBSD.
 >  
 >  Sure it works, but so does hostname(1).
 >  I guess the question is if hostname(1) is missing on your ramdisk, is 
 >  sysctl(8) available?
 
 Ramdisk kernels are also used for rescue media and
 sysctl(8) is useful for it (though not all ramdisks have it).
 
 On some ports, sysctl(8) is used to detect a console device
 (screen or serial) in /.profile script to set a proper term
 environment before starting sysinst.
 
 On the other hand, hostname(1) is rarely required for install or rescue.
 
 % find . -name list -exec grep -q sbin/sysctl {} \; -print 
 ./amd64/ramdisks/ramdisk/list
 ./atari/floppies/install/list
 ./atari/floppies/prepare/list
 ./evbmips/instkernel/ramdisk/list
 ./evbsh3/rom/ramdiskcommon/list
 ./i386/ramdisks/ramdisk-big/list
 ./ofppc/ramdisks/ramdisk/list
 ./shark/instkernel/ramdisk/list
 ./sparc/miniroot/list
 ./sparc64/instfs/list
 ./sun2/miniroot/list
 ./sun3/miniroot/list
 ./vax/miniroot/list
 % find . -name list -exec grep -q bin/hostname {} \; -print 
 ./evbsh3/rom/ramdiskcommon/list
 ./evbsh3/instkernel/ramdisk/list
 ./miniroot/list
 ./sun3/miniroot/list
 ./sun2/miniroot/list
 % 
 



Home | Main Index | Thread Index | Old Index