Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there way to quickly clean up or revert your chroot to its previous new state, without reinstalling or re setting it up, so I could start fresh again?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

The package schroot supports LVM and Btrfs snapshots. From its man page:

Source chroots
Some chroot types, for example LVM snapshots and Btrfs snapshots, provide session-managed copy-on-write snapshots of the chroot. These also provide a source chroot to allow easy access to the filesystem used as a source for snapshotting. These are regular chroots as well, just with the snapshotting disabled. For a chroot named "sid-snapshot" (i.e. with a fully qualified name of "chroot:sid-snapshot"), there will also be a corresponding source chroot named "source:sid-snapshot". Earlier versions of schroot provided source chroots with a '-source' suffix. These are also provided for compatibility. In this example, this would be called "chroot:sid-snapshot-source". These compatibility names will be dropped in a future version, so programs and scripts should switch to using the namespace-qualified names rather than the old suffix.

Otherwise you can look at other copy-on-write filesystems (in short COW), as copyfs, cowdancer.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.