mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
container: Randomize btrfs partition UUID
Fixes #1910 Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
c454aa1019
commit
5e77cf9b6b
@ -420,6 +420,8 @@ def _resize_disk_image(image_file, new_size):
|
||||
['sudo', 'kpartx', '-avs', str(image_file)], stdout=subprocess.PIPE,
|
||||
check=True)
|
||||
partition = '/dev/mapper/' + process.stdout.decode().split()[2]
|
||||
subprocess.run(['sudo', 'btrfstune', '-uf', partition], check=True)
|
||||
|
||||
with tempfile.TemporaryDirectory(
|
||||
dir=work_directory.resolve()) as mount_point:
|
||||
subprocess.run(['sudo', 'mount', partition, mount_point], check=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user