Hello forum!
I'm building a web-interface to ZFS based on FreeBSD, called Mesa. Ideally i would love to release several versions:
1) script-only version (.php files; requires manual setup)
2) normal binary version (pre-installed binary image based on UFS or ZFS; root bootable filesystem)
3) embedded binary version that runs great on USB flash / CF media due to no writes happening during operation
The reason for opening this thread, is solving the puzzle on how to implement option three, as i already implemented the first two. To describe exactly what i want:
root filesystem: tmpfs (writable filesystem that runs in RAM; contents gone after reboot)
mounted in combination with unionfs that acts as a bridge between the root tmpfs and a binary image that is not writable.
The result of this is a writable root filesystem where no physical writes happen to the system disk, which usually is a small USB pendrive or CompactFlash card. Such devices do not last long with the large number of small writes/modifications happening on system disks.
My question is: how does this work? Not much information turns up in my search queries, except the usual /tmp tmpfs examples and non-root filesystem unionfs mounts. My experience tells me that /boot/loader.conf should hold values to implement such a thing; but i couldn't find much tunables in /boot/defaults/loader.conf other than loading the relevant kernel modules themselves. I briefly looked at FreeNAS, but their /boot/loader.conf appears empty; and the /etc/fstab is pretty much empty too. How is this stuff supposed to be configured?
Anyone who could put me on the right track? Thanks alot!
I'm building a web-interface to ZFS based on FreeBSD, called Mesa. Ideally i would love to release several versions:
1) script-only version (.php files; requires manual setup)
2) normal binary version (pre-installed binary image based on UFS or ZFS; root bootable filesystem)
3) embedded binary version that runs great on USB flash / CF media due to no writes happening during operation
The reason for opening this thread, is solving the puzzle on how to implement option three, as i already implemented the first two. To describe exactly what i want:
root filesystem: tmpfs (writable filesystem that runs in RAM; contents gone after reboot)
mounted in combination with unionfs that acts as a bridge between the root tmpfs and a binary image that is not writable.
The result of this is a writable root filesystem where no physical writes happen to the system disk, which usually is a small USB pendrive or CompactFlash card. Such devices do not last long with the large number of small writes/modifications happening on system disks.
My question is: how does this work? Not much information turns up in my search queries, except the usual /tmp tmpfs examples and non-root filesystem unionfs mounts. My experience tells me that /boot/loader.conf should hold values to implement such a thing; but i couldn't find much tunables in /boot/defaults/loader.conf other than loading the relevant kernel modules themselves. I briefly looked at FreeNAS, but their /boot/loader.conf appears empty; and the /etc/fstab is pretty much empty too. How is this stuff supposed to be configured?
Anyone who could put me on the right track? Thanks alot!