Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider making non-ISO USB images using 'zpool checkpoint' #81

Open
probonopd opened this issue Jan 2, 2021 · 3 comments
Open

Consider making non-ISO USB images using 'zpool checkpoint' #81

probonopd opened this issue Jan 2, 2021 · 3 comments

Comments

@probonopd
Copy link
Member

probonopd commented Jan 2, 2021

Addressing #4, in BSD Now Episode 383: "Scale the tail" it is explained that sing just ZFS it is not possible to generate a writeable pool from read-only media plus read-write media (such as RAM).

https://www.freebsdnews.com/2021/01/01/bsd-now-episode-383-scale-the-tail/

But it is suggested that since few people are using actual DVD media anymore, we could construct non-ISO disk images with ZFS on them (similar to what NomadBSD is doing), but then using zpool checkpoint (think of it as a "pool-wide snapshot").

During the boot process, one could go back to the last checkpoint.

Advantages:

  • ~100 seconds boot time saved
  • RAM requirement goes from 4GB to ~1GB

Disadvantages:

  • Does not work from truly read-only media like DVDs
  • Truly read-only media are preferred for auditing purposes ("I know for sure that no one tampered with the software")
  • May not work for systems like Ventoy

Maybe we can at least find a way to boot into Xorg from truly read-only media by mounting a few tmpfs in the right places like /etc, /var, /usr/local/etc, /usr/local/var? This way one could at least install the system from a DVD. Is it worth the extra hassle? I don't know.

@grahamperrin

This comment has been minimized.

@probonopd
Copy link
Member Author

Don't think the topics are related.

@probonopd
Copy link
Member Author

How would one do this to the system one has booted from?

zpool export zroot
zpool import --rewind-to-checkpoint zroot
Cannot unmount '/': Invalid argument

So one would probably only be able to do this from a ramdisk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants