How would I make a LiveUSB image so I could boot FreeBSD from a USB thumbdrive and remove the thumbdrive once it is loaded?
Unionfs is not stable, so I don't want to use that and risk data loss.
On Linux, I would traditionally, make a custom init to:
1. mount root image
2. create tmpfs mount
3. copy root image contents to tmpfs volume
4. unmount root image
5. remove thumbdrive
FreeBSD supports tmpfs, so that part is easy, but the part I'm not getting is modifying the boot process. Where is the init and how would I specify one at boot time?
I just realized I asked this question earlier:
I will continue the discussion there since I cannot delete this.
Unionfs is not stable, so I don't want to use that and risk data loss.
On Linux, I would traditionally, make a custom init to:
1. mount root image
2. create tmpfs mount
3. copy root image contents to tmpfs volume
4. unmount root image
5. remove thumbdrive
FreeBSD supports tmpfs, so that part is easy, but the part I'm not getting is modifying the boot process. Where is the init and how would I specify one at boot time?
I just realized I asked this question earlier:
I am using tmpfs for /tmp and that made a significant difference in chromium as well as other apps that use it, but would essentially like to use it for /. The logical steps I can think of are:
1. create root image, optional compression
2. extract root image contents into memory backed device mounted
3. let the system mount other filesystems defined in /etc, import zpools etc.
Where would I start for #2? I came across:
www.freebsd.org
I think all I need to do is write a simple enough script, but how do I get the system to run it...
1. create root image, optional compression
2. extract root image contents into memory backed device mounted
3. let the system mount other filesystems defined in /etc, import zpools etc.
Where would I start for #2? I came across:
Chapter 15. The FreeBSD Booting Process
An introduction to the FreeBSD Booting Process, demonstrates how to customize the FreeBSD boot process, including everything that happens until the FreeBSD kernel has started, probed for devices, and started init
I think all I need to do is write a simple enough script, but how do I get the system to run it...
I will continue the discussion there since I cannot delete this.
Last edited: