troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
621 stars 61 forks source link

fstab rootfs / switch_root #291

Closed pwFoo closed 2 years ago

pwFoo commented 2 years ago

Hi @troglobit,

I've done some first steps to build my own running linux system based on finit and busybox / alpine. Looks really great and works fine so far. Great job with finit 👍

Now I thinking about rootfs and found an example to mount "/" from /etc/fstab. Is it something like switch_root or just mount a partition to "/"?

My idea was to mount squashfs and a overlayfs to / or squashfs with some persistent additional / mounts.

Is there an example with fstab rootfs mount / switch_root or squashfs / overlayfs?

Many thanks!