You are not logged in.
Hi,
as far as I understood snapshort are not persistent over a reboot. That means i cannot shutdown and unmount a partition and its snapshot and remount it after reboot. Is that correct?
I want to use snapshots, to create a test system which is persistent over reboot. Could this be a possibility to circumnavigate this?
Add a new Startup Option to Grub (Something like boot test configuration)
Create a hook in Initrd which reads cmdline an a flag like "bootsnapshot"
Then
If there is nothing in snapshot partition -> create a new snapshot and boot into it instead of real root
If there is a snapshot in partition -> boot into it
After a while and some bootups i can trigger a merge and write the changes to real root or discard the changes.
Would this work?
Thanks for your opinion
Offline
Hi,
as far as I understood snapshort are not persistent over a reboot. That means i cannot shutdown and unmount a partition and its snapshot and remount it after reboot. Is that correct?
No, where did you read this?
[...] Would this work?
This could be done, but maybe you can describe what your intentions are as there are many alternative methods of doing this; such as using onionfs to mount a tmpfs over your existing root. Why do you want to do this? ![]()
Offline
Thanks,
i want to have the possibility of rollback after a system upgrade. Thats my primary intention.
Are there better ways?
Offline
Have a look at http://www.nikhef.nl/~dennisvd/lvmcrap.html.
Offline