I'm using Kubuntu 11.10 and before I upgrade to 12.04, I want to make snapshots of my filesystems. Coming to think of that, I realized that it can be very useful to create snapshots of logical volumes during boot before they are mounted. At that moment, the volume/filesystem should be clean and is perfect to be used for an image backup.
How can I create LV snapshots of my filesystems during boot, before the filesystems are being mounted by the kernel? I think this should be done in initrd, but unsure how.