Date: Fri, 20 Sep 2013 21:25:57 +0400 From: Eir Nym <eirnym@gmail.com> To: freebsd-rc@freebsd.org Subject: rc.conf reloading while /etc/ is one of mounted fs Message-ID: <CAO8GK0pqGSE%2B0X4r3yt=ELb9uLxLNMGhNpV3h6APwbzq8UANmg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO8GK0pqGSE%2B0X4r3yt=ELb9uLxLNMGhNpV3h6APwbzq8UANmg>