The retry decorator is buggy when the 10 attempts fail: "cannot access local variable 'e' where it is not associated with a value"
From wb:2c9c4cd8aa2aebd2b1ae8cd3debd70df, on Tails 6.0, upgrade by cloning without cloning Persistent Storage:
Removing existing Tails system
Verifying filesystem...
Extracting live image to the target device...
Wrote to device at 10 MB/s
Reading extracted MBR from /media/amnesia/TAILS/utils/mbr/mbr.bin
Installing bootloader...
Synchronizing data on disk...
Unmounting mounted filesystems on "/dev/sdb1"
Synchronizing data on disk...
Resetting Master Boot Record of /dev/sdb
Resetting Master Boot Record of /dev/sdb
Resetting Master Boot Record of /dev/sdb
Resetting Master Boot Record of /dev/sdb
Resetting Master Boot Record of /dev/sdb
Resetting Master Boot Record of /dev/sdb
Resetting Master Boot Record of /dev/sdb
Resetting Master Boot Record of /dev/sdb
Resetting Master Boot Record of /dev/sdb
Resetting Master Boot Record of /dev/sdb
cannot access local variable 'e' where it is not associated with a value
Tails installation failed!
cannot access local variable 'e' where it is not associated with a value
I'll report the "Resetting Master Boot Record" problem itself separately, this one is about exception handling.
@BenWestgate, does this ring a bell?