Bug 53760

Summary: kickstart partitioning an already-partitioned disk fails
Product: [Retired] Red Hat Linux Reporter: Matt Domsch <matt_domsch>
Component: anacondaAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: dale_kaisner, john_hull
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-09-18 16:02:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matt Domsch 2001-09-17 21:34:23 UTC
Description of Problem:
Kickstart partitioning of an already-partitioned disk fails in Fairfax IA-
64 RC1 (roswell2 - 18 August 2001).

At anaconda start, disk /dev/sda has three partitions on a GPT disk:
 /dev/sda1  /boot/efi   100MB
 /dev/sda2  swap        2047MB
 /dev/sda3  /           rest of disk

Kickstart file has the following:

# P A R T I T I O N   S P E C I F I C A T I O N
zerombr yes
clearpart --linux
part /boot/efi --ondisk sda --onpart sda1 --noformat
part /         --fstype ext3 --size=1024 --ondisk=sda 
part /usr      --fstype ext3 --size=4096 --ondisk=sda 
part swap      --fstype swap --size=2048 --ondisk=sda 
part /tmp      --fstype ext3 --size=512  --ondisk=sda 
part /var      --fstype ext3 --size=64	 --ondisk=sda --grow

This *should* clear the ext2/3 and swap partitions, but hopefully not the 
EFI System Partition.  I'd like to keep the existing EFI System Partition, 
as-is.


Anaconda displays the following message:
  Unable to locate partition sda2 to use for /boot/efi
Clearly it's got some counting wrong, as sda1 should be /boot/efi.

The kernel has this message:
  device busy for revalidation (usage=2)
df and /proc/mounts don't show anything mounted
/proc/modules shows that the megaraid module (where sda lives) has a use 
count of 1.
/proc/partitions shows the three original partitions, sda[123].
parted /dev/sda print shows the disk has 0 partitions, and warns that the 
kernel's idea of partitions was not updated.

Version-Release number of selected component (if applicable):


How Reproducible:
Always

Comment 1 Jeremy Katz 2001-09-18 16:02:17 UTC
zerombr didn't act quite right in RC1, but this should be fixed now.  I'll
double-check here once I finish running some other tests.

Comment 2 Jeremy Katz 2001-09-18 19:43:56 UTC
Yep, looks like it does the right thing with the current code base.