Don't convert partuuids for empty src_partition element #149
Reference in New Issue
Block a user
Delete Branch "aaronkollasch/fix-partuuid-convert"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
When converting to partuuids, if there is an empty element in
${src_partition[@]}, then/etc/fstabwill have/dev/replaced withPARTUUID=without actually changing the device name to a PARTUUID.I don't have the exact logs when this happened to me, but it looked something like this:
and I ended up with a broken fstab:
I had previously run
sudo rpi-clone -l sdaso perhaps that is why there was an empty element insrc_partition, I'm not sure.Changes
Check that
${src_partition[p]}is not empty before editing/etc/fstab.Then, the command I used will instead exit with an error, which is much safer:
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.