Re: revert to static snapshot on reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> The plan that occurs to me is to make a snapshot of the system in the
> state that I want to always boot.  Then, I would rewrite the init
> script in the initrd to (a) delete any old tmp copy of the snapshot;
> (b) copy the static snapshot to a tmp copy; (c) mount the tmp copy.
>
> That's a little harder than I was hoping to work -- is there an easier
> way to get this functionality?

I would just create a filesystem with the static content, and on boot do:

mount fs
delete snapshots
create snapshot
unmount fs and mount snapshot.

I'm not sure if you can snapshot a snapshot, otherwise you could start
with a snapshot as well. (Just be sure not to delete it)

Niels


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux