FS#29927 - Sfdisk partitioning fails, disk in use

Attached to Project: Release Engineering
Opened by Greg Sutcliffe (gwmngilfen) - Thursday, 17 May 2012, 10:57 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Monday, 26 November 2012, 04:52 GMT
Task Type Bug Report
Category AIF
Status Closed
Assigned To Dieter Plaetinck (Dieter_be)
Architecture All
Severity Medium
Priority Normal
Reported Version testbuild (specify!)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Using archlinux-2012.05.17_04-00-01-netinstall-dual.iso, QEMU-KVM x86_64 machine, Virtio Disk on /dev/vda, automated install.

Installation will fail at the partitioning step - sfdisk claims the disk in in use. With more investigation, I believe the error may be related to dm-setup. I was installing Arch on a disk which had been previously used by an LVM-based Ubuntu install. I told AIF to wipe the whole disk, as you can see:

PART_ACCESS=uuid
GRUB_DEVICE=/dev/vda
PARTITIONS='/dev/vda 100:ext2:+ 512:swap *:ext3'
BLOCKDATA='/dev/vda1 raw no_label ext2;yes;/boot;target;no_opts;no_label;no_params
/dev/vda2 raw no_label swap;yes;no_mountpoint;target;no_opts;no_label;no_params
/dev/vda3 raw no_label ext3;yes;/;target;no_opts;no_label;no_params'

If, however, I delete the disk image, and create a new blank disk image, the install proceeds correctly - as such, I think something about the previous OS is being detected/mounted before AIF partitions it.
This task depends upon

Closed by  Gerardo Exequiel Pozzi (djgera)
Monday, 26 November 2012, 04:52 GMT
Reason for closing:  Deferred
Comment by Greg Sutcliffe (gwmngilfen) - Thursday, 17 May 2012, 11:07 GMT
With further testing, this seems to happen with any previously-used disk. I re-installed the same machine with the same partition scheme above, and it failed. I paused the auto install before running AIF, and used fdisk to delete all the partitions, after which the install proceeded normally. It seems AIF is doing something before partitioning (detection of filesystems?) that is then breaking the install.

Loading...