description "Mount filesystems on boot"
start on startup
task
emits virtual-filesystems
emits local-filesystems
emits remote-filesystems
emits all-swaps
emits filesystem
emits mounted
script
echo "/ / zfs rw 0 0" > /etc/mtab
echo "proc /proc proc rw,noexec,nosuid,nodev 0 0" >> /etc/mtab
/sbin/initctl emit --no-wait virtual-filesystems
/bin/mount -t tmpfs tmpfs /dev/shm || true
/bin/mount -t tmpfs tmpfs /run || true
/bin/mkdir -p /run/lock || true
/bin/ln -s /dev/shm /run/shm || true
/sbin/initctl emit --no-wait mounted MOUNTPOINT=/
/sbin/initctl emit --no-wait mounted MOUNTPOINT=/run TYPE=tmpfs
/sbin/initctl emit --no-wait local-filesystems
/sbin/initctl emit --no-wait all-swaps
/sbin/initctl emit --no-wait filesystem
end script