mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Add -P to the losetup command
It seems to be required for partitions to be recognized.
This commit is contained in:
parent
53803ed46f
commit
c9868f4312
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ def create_disk(image, disk_type, fs_type, size):
|
|||
run('truncate', '-s', size, image)
|
||||
# First find the device we will use, then actually use it
|
||||
loop_dev = run('sudo', 'losetup', '-f', capture_output=True).stdout.decode().strip()
|
||||
run('sudo', 'losetup', loop_dev, image)
|
||||
run('sudo', 'losetup', '-P', loop_dev, image)
|
||||
# Create the partition
|
||||
run('sudo', 'parted', '--script', image, 'mklabel', disk_type, 'mkpart',
|
||||
'primary', 'ext4', '0%', '100%')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue