Red Hat Bugzilla – Bug 475399
livecd-tools: use ext2, fill crypt target with /dev/urandom first, handle password typos
Last modified: 2008-12-19 13:57:10 EST
Created attachment 326256 [details]
Description of problem:
1) ext2 should be nicer than ext3 for flash. There's no good reason to journal with the flash, and it just chews up write cycles.
2) if you're going to use an encrypted volume, it's best to pre-fill the volume with random data. Using /dev/urandom, it's fast enough. Only do this for non-sparse-file-backed encrypted home. Could arguably drop sparse-file-backed encrypted home and do this everywhere, but that would definitely be slower.
3) if any of the cryptsetup commands fail (bad password typed), keep trying. Otherwise, a typo means the whole process dies badly and you have to start from scratch.
Version-Release number of selected component (if applicable):
Not journaling increased the chances of ending up with a corrupted /home in cases of, eg, just turning the computer off.
Went ahead and pushed the other bits, though