Skip to content

Can "Clone & Upgrade" to a small device which does not have Tails installed

While doing some testing on #9129 (closed) I found that “Clone & Install” will not work with a 2GB device. This is expected because #6538 (closed) fixed that. Indeed, when running with --verbose the message Skipping too small device is sent to stderr.

“Clone & Upgrade”, however, will proceed with formatting. This was reproduced with a freshly created 2GB disk image with a GPT partition table, and a vfat file system in the experimental branch.

As expected, the installation fails.

$ liveusb-creator-launcher --verbose
Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 
[creator:1213] extlinux not found! Only FAT filesystems will be supported
[creator:666] Skipping device '/org/freedesktop/UDisks/devices/sr0' connected to 'scsi' interface
[creator:713] {'bootable': False,
 'device': '/dev/sda',
 'free': None,
 'fstype': '',
 'fsversion': '',
 'is_optical': False,
 'label': u'',
 'model': u'QEMU HARDDISK',
 'mount': None,
 'mounted_partitions': set(),
 'parent': None,
 'parent_size': None,
 'parent_udi': None,
 'size': 2147483648L,
 'udi': '/org/freedesktop/UDisks/devices/sda',
 'uuid': '',
 'vendor': u'QEMU'}
[creator:713] {'bootable': False,
 'device': '/dev/sda1',
 'free': 1603L,
 'fstype': 'vfat',
 'fsversion': 'FAT32',
 'is_optical': False,
 'label': u'Tails',
 'model': u'QEMU HARDDISK',
 'mount': u'/media/C368-5967',
 'mounted_partitions': set(),
 'parent': '/dev/sda',
 'parent_size': 2147483648L,
 'parent_udi': '/org/freedesktop/UDisks/devices/sda',
 'size': 2147353088,
 'udi': '/org/freedesktop/UDisks/devices/sda1',
 'uuid': 'C368-5967',
 'vendor': u'QEMU'}
[creator:666] Skipping device '/org/freedesktop/UDisks/devices/loop0' connected to '' interface
[creator:732] {'/dev/sda': set(['/org/freedesktop/UDisks/devices/sda1'])}
[gui:408] drives: {'/dev/sda1': {'size': 2147353088, 'is_optical': False, 'vendor': u'QEMU', 'fsversion': 'FAT32', 'parent': '/dev/sda', 'bootable': False, 'mount': u'/media/C368-5967', 'parent_size': 2147483648L, 'mounted_partitions': set([]), 'free': 1603L, 'label': u'Tails', 'fstype': 'vfat', 'parent_udi': '/org/freedesktop/UDisks/devices/sda', 'device': '/dev/sda1', 'model': u'QEMU HARDDISK', 'udi': '/org/freedesktop/UDisks/devices/sda1', 'uuid': 'C368-5967'}}
[gui:536] Partition is FAT32; Restricting overlay size to 4G
DEBUG:liveusb.creator:Partition is FAT32; Restricting overlay size to 4G
[creator:559] /dev/sda1 selected: {'size': 2147353088, 'is_optical': False, 'vendor': u'QEMU', 'fsversion': 'FAT32', 'parent': '/dev/sda', 'bootable': False, 'mount': u'/media/C368-5967', 'parent_size': 2147483648L, 'mounted_partitions': set([]), 'free': 1603L, 'label': u'Tails', 'fstype': 'vfat', 'parent_udi': '/org/freedesktop/UDisks/devices/sda', 'device': '/dev/sda1', 'model': u'QEMU HARDDISK', 'udi': '/org/freedesktop/UDisks/devices/sda1', 'uuid': 'C368-5967'}
DEBUG:liveusb.creator:/dev/sda1 selected: {'size': 2147353088, 'is_optical': False, 'vendor': u'QEMU', 'fsversion': 'FAT32', 'parent': '/dev/sda', 'bootable': False, 'mount': u'/media/C368-5967', 'parent_size': 2147483648L, 'mounted_partitions': set([]), 'free': 1603L, 'label': u'Tails', 'fstype': 'vfat', 'parent_udi': '/org/freedesktop/UDisks/devices/sda', 'device': '/dev/sda1', 'model': u'QEMU HARDDISK', 'udi': '/org/freedesktop/UDisks/devices/sda1', 'uuid': 'C368-5967'}
[creator:837] Entering unmount_device for '/dev/sda1'
DEBUG:liveusb.creator:Entering unmount_device for '/dev/sda1'
[creator:840] {'bootable': False,
 'device': '/dev/sda1',
 'free': 1603L,
 'fstype': 'vfat',
 'fsversion': 'FAT32',
 'is_optical': False,
 'label': u'Tails',
 'model': u'QEMU HARDDISK',
 'mount': u'/media/C368-5967',
 'mounted_partitions': set(),
 'parent': '/dev/sda',
 'parent_size': 2147483648L,
 'parent_udi': '/org/freedesktop/UDisks/devices/sda',
 'size': 2147353088,
 'udi': '/org/freedesktop/UDisks/devices/sda1',
 'uuid': 'C368-5967',
 'vendor': u'QEMU'}
DEBUG:liveusb.creator:{'bootable': False,
 'device': '/dev/sda1',
 'free': 1603L,
 'fstype': 'vfat',
 'fsversion': 'FAT32',
 'is_optical': False,
 'label': u'Tails',
 'model': u'QEMU HARDDISK',
 'mount': u'/media/C368-5967',
 'mounted_partitions': set(),
 'parent': '/dev/sda',
 'parent_size': 2147483648L,
 'parent_udi': '/org/freedesktop/UDisks/devices/sda',
 'size': 2147353088,
 'udi': '/org/freedesktop/UDisks/devices/sda1',
 'uuid': 'C368-5967',
 'vendor': u'QEMU'}
[creator:847] Unmounting mounted filesystems on '/dev/sda1'
INFO:liveusb.creator:Unmounting mounted filesystems on '/dev/sda1'
[creator:852] Unmounting '/org/freedesktop/UDisks/devices/sda1' on '/dev/sda1'
DEBUG:liveusb.creator:Unmounting '/org/freedesktop/UDisks/devices/sda1' on '/dev/sda1'
[creator:799] Calling /org/freedesktop/UDisks/devices/sda1.FilesystemMount(vfat, [], ...)
DEBUG:liveusb.creator:Calling /org/freedesktop/UDisks/devices/sda1.FilesystemMount(vfat, [], ...)
[creator:830] Mounted /dev/sda1 to /media/Tails 
DEBUG:liveusb.creator:Mounted /dev/sda1 to /media/Tails 
[gui:536] Partition is FAT32; Restricting overlay size to 4G
DEBUG:liveusb.creator:Partition is FAT32; Restricting overlay size to 4G
[creator:485] Removing existing Live OS
INFO:liveusb.creator:Removing existing Live OS
[creator:489] Considering /media/Tails/.disk
DEBUG:liveusb.creator:Considering /media/Tails/.disk
[creator:489] Considering /media/Tails/EFI
DEBUG:liveusb.creator:Considering /media/Tails/EFI
[creator:489] Considering /media/Tails/live
DEBUG:liveusb.creator:Considering /media/Tails/live
[creator:943] Verifying filesystem...
INFO:liveusb.creator:Verifying filesystem...
[creator:397] freebytes = 2143145984
DEBUG:liveusb.creator:freebytes = 2143145984
[creator:398] source size = 1277226568
DEBUG:liveusb.creator:source size = 1277226568
[creator:400] overlaysize = 0
DEBUG:liveusb.creator:overlaysize = 0
[creator:148] Extracting live image to the target device...
INFO:liveusb.creator:Extracting live image to the target device...
INFO:liveusb.creator:Extracting live image to the target device...
[creator:155] Wrote to device at 1 MB/sec
INFO:liveusb.creator:Wrote to device at 1 MB/sec
[creator:1161] Resetting Master Boot Record of /dev/sda
INFO:liveusb.creator:Resetting Master Boot Record of /dev/sda
[creator:329] cat /media/Tails/utils/mbr/mbr.bin > /dev/sda
DEBUG:liveusb.creator:cat /media/Tails/utils/mbr/mbr.bin > /dev/sda
[creator:892] Updating properties of system partition /dev/sda1
INFO:liveusb.creator:Updating properties of system partition /dev/sda1
[gui:270] org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/liveusb/gui.py", line 244, in run
    self.live.update_system_partition_properties()
  File "/usr/lib/python2.7/dist-packages/liveusb/creator.py", line 901, in update_system_partition_properties
    system_partition.PartitionModify(partition_type, label, flags)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ERROR:liveusb.creator:org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/liveusb/gui.py", line 244, in run
    self.live.update_system_partition_properties()
  File "/usr/lib/python2.7/dist-packages/liveusb/creator.py", line 901, in update_system_partition_properties
    system_partition.PartitionModify(partition_type, label, flags)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Related issues

Original created by @kytv on 9275 (Redmine)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information