USB image creation sometimes fails with: GLib.Error: udisks-error-quark: GDBus.Error:org.freedesktop.UDisks2.Error.NotSupported: No support for modifying a partition a table of type `PMBR' (11)
Spotted on https://jenkins.tails.boum.org/view/RM/job/build_Tails_ISO_stable/2433/.
INFO:__main__:Creating empty image '/tmp/tails-build.A5ktXB1y/tails-amd64-stable-3.11-20181129T0717Z-cd0985b389.img'
INFO:__main__:Executing 'dd if=/dev/zero of=/tmp/tails-build.A5ktXB1y/tails-amd64-stable-3.11-20181129T0717Z-cd0985b389.img bs=1M count=1178'
1178+0 records in
1178+0 records out
1235222528 bytes (1.2 GB, 1.2 GiB) copied, 0.643551 s, 1.9 GB/s
INFO:__main__:Setting up loop device
INFO:__main__:Loop device: '/org/freedesktop/UDisks2/block_devices/loop0'
INFO:__main__:Creating GPT
INFO:__main__:Creating partition
INFO:__main__:Partition: '/org/freedesktop/UDisks2/block_devices/loop0p1'
INFO:__main__:Setting partition flags
INFO:__main__:Setting partition type
INFO:__main__:Tearing down loop device
Traceback (most recent call last):
File "/tmp/tails-build.A5ktXB1y/auto/scripts/create-usb-image-from-iso", line 401, in <module>
main()
File "/tmp/tails-build.A5ktXB1y/auto/scripts/create-usb-image-from-iso", line 397, in main
image_creator.create_image()
File "/tmp/tails-build.A5ktXB1y/auto/scripts/create-usb-image-from-iso", line 108, in create_image
self.set_partition_type()
File "/tmp/tails-build.A5ktXB1y/auto/scripts/create-usb-image-from-iso", line 214, in set_partition_type
GLib.Variant('a{sv}', None)
GLib.Error: udisks-error-quark: GDBus.Error:org.freedesktop.UDisks2.Error.NotSupported: No support for modifying a partition a table of type `PMBR' (11)
High priority because it affects unrelated branches.
I think that some of the workarounds in Tails Installer make it avoid this hitting this failure mode, although see #10987 (closed).
Feature Branch: feature/15292-generate-usb-image
Parent Task: #15293 (closed)
Related issues
- Related to #10987 (closed)
Original created by @intrigeri on 16168 (Redmine)