| Summary: | The image creation process puts the first partition on sector 1 instead of cylinder 1 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Pierre Carrier <prc> | ||||
| Component: | releng | Assignee: | Jay Greguske <jgreguske> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Release Test Team <release-test-team> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 5.5 | CC: | dgregor, dmach, jfenal, jgreguske, jwest, prc, tkopecek, whayutin | ||||
| Target Milestone: | rc | Keywords: | EC2 | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 692224 (view as bug list) | Environment: | |||||
| Last Closed: | 2011-06-08 15:19:54 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 692224 | ||||||
| Attachments: |
|
||||||
|
Description
Pierre Carrier
2011-03-17 16:08:04 UTC
Created attachment 486573 [details]
Untested patch for appliance-tools. Hope it can help.
I can confirm the default geometry of a loopback device (as created by livecd-tools through LoopbackMount.loopsetup and therefore used during partitioning) has the same number of sectors per track, 63: # dd if=/dev/zero of=test-disk bs=1M count=10 # modprobe loop; dev=$(losetup -f) # losetup $dev test-disk # fdisk /dev/loop0 [...] Command (m for help): u Changing display/entry units to sectors Command (m for help): n [...] p primary partition (1-4) p Partition number (1-4): 1 First sector (63-20479, default 63): Jay, the change broke last RHEL-5 nightly: Adding disk sda as ... Extending sparse file ... Losetup add /dev/loop0 mapping to ... Formatting disks Initializing partition table for /dev/loop0 Assigning partitions to disks Assigned / to sda1 at 0 at size 6143 Creating partitions Add primary part at 0 of size 6143 Unable to create appliance : Failed mount disks : Unexpected number of partitions from kpartx: 0 != 1 Losetup remove /dev/loop0 Thanks for the heads' up, will check into it today. (and RHEL 6) Urk. Reverting the RHEL 5 buildroots. RHEL 6 is ok. The misbehavior is still present, but we no longer upload disk images to EC2. Instead we upload partition images, which don't have a partition table on them, so this bug no longer affects customers. |