Comment 1 for bug 510066

Revision history for this message
Claude Heiland-Allen (claudiusmaximus) wrote :

At a guess (and a general consideration too): the script seems to assume that the device has a valid partition table to start with, and deletes the partitions on it one by one. I'm not sure if the order in which partitions are deleted is handled correctly (extended partitions must go before their owner primary partitions at a guess?), but I think it's the wrong approach anyway: As the device will be wiped anyway, it might be better to use dd to wipe the partition table to a known pristine/clean state before starting to avoid bugging out when an unusual partition table is encountered?

http://bazaar.launchpad.net/~puredyne-team/bouilloncube/devel/annotate/head%3A/sh/make-live-device.sh#L77