rc.conf reloading while /etc/ is one of mounted fs
Eir Nym
eirnym at gmail.com
Fri Sep 20 17:26:17 UTC 2013
I had problem with /etc/rc.conf and /etc/rc.conf.local won't be
reloaded if /etc/ mounted on boot. There's way to detect it more correctly
than I does?
I have following ZFS mounts:
server/common/distfiles /usr/ports/distfiles
server/common/home /usr/home
server/common/local.etc /usr/local/etc
server/common/obj /usr/obj
server/common/tmp /tmp
server/common/var /var
server/common/www /usr/local/www
server/os/r255342 /
server/os/r255342/boot /boot
server/os/r255342/etc /etc
server/os/r255342/local /usr/local
server/os/r255342/ports /usr/ports
server/os/r255342/src /usr/src
the reason I split root partition is ability to make it read-only
So the only way to load correct /etc/rc.conf and /etc/rc.local is replace
/etc/rc on root partition with following contents:
#!/bin/sh
/sbin/zfs mount `zfs list|awk ' $5=="/etc" {print $1}' `
exec /etc/rc $@
-- Eir Nym
More information about the freebsd-rc
mailing list