Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1009172
Summary: | dracut-modules-growroot does not enlarge /dev/mmcblk0 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Paul Whalen <pwhalen> | ||||
Component: | cloud-initramfs-tools | Assignee: | Juerg Haefliger <juergh> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 20 | CC: | Jan.van.Eldik, juergh, kmcmartin, pbrobinson | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | arm | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | cloud-initramfs-tools-0.20-2.fc19 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-11-26 04:51:52 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 245418, 980657 | ||||||
Attachments: |
|
Description
Paul Whalen
2013-09-17 21:42:55 UTC
Do you happen to have a pointer to an ARM image that I could use for investigating the problem? Juerg, The latest and greatest is here - https://dl.fedoraproject.org/pub/alt/stage/20-Alpha-RC4/Images/armhfp/ Thanks for looking at this. Confirmed. Growroot does not properly identify the root disk: messages:Sep 25 05:27:46 localhost dracut-pre-pivot: growroot: FAILED: /dev/mmcblk0p: does not exist Sorry this is taking so long. I've been distracted by other work and there is another problem lurking behind this bug (see https://bugzilla.redhat.com/show_bug.cgi?id=1016648). I believe I have a fix now but need to do some more testing. Could you share your fix? I can test it... I've been working on this as well, using sysfs to properly go from partitions to devices, instead of relying on games with the disk names to figure things out. regards, Kyle Agreed, the script mangling of the device name is ugly. Love to see your work! Created attachment 815101 [details]
growroot script
Running the attached in dracut's pre-mount stage works for me.
cloud-initramfs-tools-0.20-2.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/cloud-initramfs-tools-0.20-2.fc20 cloud-initramfs-tools-0.20-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/cloud-initramfs-tools-0.20-2.fc19 cloud-initramfs-tools-0.20-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/cloud-initramfs-tools-0.20-2.el6 Tested on BeagleBone Black with mmcblk0, confirmed root partition is resized. The root filesystem requires a manual resize, should this also be handled? (In reply to Paul Whalen from comment #11) > Tested on BeagleBone Black with mmcblk0, confirmed root partition is > resized. The root filesystem requires a manual resize, should this also be > handled? No. This package only resizes the partition. Filesystem resizing is up to cloud-init. I understand that ARM (mis-)uses this package for the purpose of expanding the image to the max size. Maybe we should consider a separate package for this that runs completely in post-initrd since newer kernels support online partition resizing. And the cloud-initramfs-tools package is likely to go away in F21. > No. This package only resizes the partition. Filesystem resizing is up to
> cloud-init. I understand that ARM (mis-)uses this package for the purpose of
> expanding the image to the max size. Maybe we should consider a separate
> package for this that runs completely in post-initrd since newer kernels
> support online partition resizing. And the cloud-initramfs-tools package is
> likely to go away in F21.
I think it's worth splitting it out, or moving it over as a subpackage of dracut
Proposing as a freeze exception: This fixes root partition resize on ARM - tested on vexpress using vda or mmcblk, BeagleBone Black. cloud-initramfs-tools-0.20-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. cloud-initramfs-tools-0.20-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. cloud-initramfs-tools-0.20-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |