Diskless Soekris, current, and disappearing /var and /usr

Michael W. Lucas mwlucas at blackhelicopters.org
Wed Apr 28 08:13:02 PDT 2004


Hi,

Any help would be appreciated.  This is my first stab at diskless with
FreeBSD.

I have a Soekris box I'm trying to use diskless with a very recent
-current, and having trouble getting it to boot properly multi-user.

If I boot single-user, I get a command prompt.

In single-user mode I can do "mount /usr" and it just works.  I can
/etc/rc.d and do "./tmp start" and "./var start" and it works, giving
me a all sorts of directories in /var, and /tmp and /var on memory
disks.

# df
Filesystem                           512-blocks    Used    Avail Capacity  Mounted on
192.168.254.1:/var/ids/dcxweb/cloned   17653888 3013080 13228500    19%  /
devfs                                         2       2        0   100%  /dev
/dev/md0                                   9436       8     8676     0%  /var
192.168.254.1:/usr                     14206300 4665200  8404596    36%  /usr
/dev/md1                                   9436     216     8468     2%  /var
#

In /conf I have two directories: a base/diskless_remount containing
"/etc", and an IP address directory containing a full /etc/ directory
with the following rc.conf.

hostname="soekris.blackhelicopters.org"
sshd_enable="yes"
kern_securelevel_enable="NO"
sendmail_enable="NO"
syslogd_flags=""
ntpd_enable="YES"
tmpmfs="YES"
tmpsize="5m"
varmfs="YES"
varsize="5m"
populate_var="YES"

When I boot from single-user, it appears that /usr and /var go away.
If I skip single-user and boot straight to multi-user, the same thing
happens.  I get the following dmesg.  A command prompt never appears.

Any ideas?

# exit
sysctl: unknown oid 'security.jail.jailed'
[: -eq: unexpected operator
Pre-seeding PRNG: kickstart.
sysctl: unknown oid 'kern.bootp_cookie'
Interface sis0 IP-Address 192.168.254.249 Broadcast 192.168.254.255
Loading configuration files.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
Fast boot: skipping disk checks.
/etc/rc.d/var: /usr/sbin/mtree: not found
/etc/rc.d/var: /usr/sbin/mtree: not found
/etc/rc.d/var: /usr/sbin/newsyslog: not found
/etc/rc.d/var: /usr/bin/touch: not found
sysctl: unknown oid 'security.jail.jailed'
[: -eq: unexpected operator
Setting hostname: soekris.blackhelicopters.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 0x4 
Additional routing options:.
hw.bus.devctl_disable: 0 -> 1
Mounting NFS file systems:nfs: can't update /var/db/mounttab for 192.168.254.1:/var/ids/dcxweb/
cloned
nfs: can't update /var/db/mounttab for 192.168.254.1:/usr
.
eval: cannot create /var/run/syslogd.sockets: No such file or directory
Starting syslogd.
Mar 31 18:42:32  syslogd: cannot create /var/run/log: No such file or directory
syslogd: child pid 311 exited with return code 1
eval: cannot create /var/run/dmesg.boot: No such file or directory
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib
ldconfig: mkstemp(/var/run/ld-elf.so.hints.Q1fF9E): No such file or directory
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout
ldconfig: /var/run/ld.so.hints.Ot3O0OVq4o: No such file or directory
Starting local daemons:.
Updating motd.
Starting ntpd.
Starting sshd.
Missing privilege separation directory: /var/empty
451 4.0.0 can not chdir(/var/spool/mqueue/): No such file or directory
can not chdir(/var/spool/mqueue/): No such file or directory
can not chdir(/var/spool/clientmqueue/): No such file or directory
Initial i386 initialization:.
Additional ABI support:.
Starting cron.
cron: can't open or create /var/run/cron.pid: No such file or directory
Local package initialization: (skipping 000.mysql-client.sh, not executable)ldconfig: mkstemp(/
var/run/ld-elf.so.hints.eqR6yr): No such file or directory
/libexec/ld-elf.so.1: Shared object "libmm.so.13" not found
 (skipping mysql-server.sh, not executable).
Additional TCP options:.
Starting background file system checks in 60 seconds.

Mon Mar 31 18:43:05 EST 1980





-- 
Michael Lucas		mwlucas at FreeBSD.org, mwlucas at BlackHelicopters.org
   "I'm sorry, but 'Social Darwinism' is no excuse for killing all of 
	           your co-workers."  -- Ivan Brunetti
		http://www.BlackHelicopters.org/~mwlucas/


More information about the freebsd-questions mailing list