can't use swap partition from dos ptable

Bug #2017646 reported by Olivier Gayot
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
subiquity
New
Undecided
Unassigned

Bug Description

Steps to reproduce:

1. Boot the server installer (scripts/kvm-test.py works fine)
2. Use fdisk to create the following disk layout:
  Disklabel type: dos

  Device Boot Start End Sectors Size Id Type
  /dev/vdb1 2048 2099199 2097152 1G 82 Linux swap / Solaris
  /dev/vdb2 2099200 23070719 20971520 10G 83 Linux
  /dev/vdb3 23070720 25165823 2095104 1023M ef EFI (FAT-12/16/32)

3. Navigate to the partitioning screen and select custom storage layout
4. Edit partition #1, change format to swap
5. Edit partition #2, change format to ext4. Ensure it gets mounted at /
6. Validate the changes and pursue the installation.
7. curtin partitioning will fail with:

  RuntimeError: Verifying /dev/vdb1 partition flag, expecting swap, found None

Revision history for this message
Olivier Gayot (ogayot) wrote :
Revision history for this message
Olivier Gayot (ogayot) wrote :
Revision history for this message
Olivier Gayot (ogayot) wrote :

Also happens when using storage-version 2 (e.g., on the desktop installer)

summary: - can't use swap partition from dos ptable in storage-version 1
+ can't use swap partition from dos ptable
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.