Bug 551469
Summary: | initrd is obsolete name for initial ram disk, use initramfs | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Marek Goldmann <mgoldman> |
Component: | appliance-tools | Assignee: | David Huff <dhuff> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 12 | CC: | dhuff, djuran, virt-maint, wadetb |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | appliance-tools-004.5-1.fc12 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-03-03 01:58:47 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
Marek Goldmann
2009-12-30 21:35:13 UTC
One thought: Fixing this is not simple as changing only line 234. We should use "initramfs" only for Fedora in version 12 or higher, in other cases use "initrd". Maybe we should check what ramdisk is installed? --- appliance.py.orig 2010-01-02 09:40:03.373786038 +0100 +++ appliance.py 2010-01-02 09:58:38.482721695 +0100 @@ -227,11 +227,16 @@ for version in kernels[kernel]: versions.append(version) + if int(os.system("ls " + self._instroot + "/boot/initramfs* 2> /dev/null | wc -l")) > 0: + initrd = "initramfs" + else: + initrd = "initrd" + for v in versions: grub += "title %s (%s)\n" % (self.name, v) grub += " root (hd0,%d)\n" % bootdevnum grub += " kernel %s/vmlinuz-%s ro root=%s %s\n" % (prefix, v, rootdev, options) - grub += " initrd %s/initramfs-%s.img\n" % (prefix, v) + grub += " initrd %s/%s-%s.img\n" % (prefix, initrd, v) logging.debug("Writing grub config %s/boot/grub/grub.conf" % self._instroot) cfg = open(self._instroot + "/boot/grub/grub.conf", "w") Scratch my above comment (I'm not a Python programmer), check out this one: --- appliance.py.orig 2010-01-02 09:40:03.373786038 +0100 +++ appliance.py 2010-01-02 11:22:44.204771295 +0100 @@ -227,11 +227,16 @@ for version in kernels[kernel]: versions.append(version) + if int(subprocess.Popen("ls " + self._instroot + "/boot/initramfs* | wc -l", shell=True, stdout=subprocess.PIPE).communicate()[0].strip()) > 0: + initrd = "initramfs" + else: + initrd = "initrd" + for v in versions: grub += "title %s (%s)\n" % (self.name, v) grub += " root (hd0,%d)\n" % bootdevnum grub += " kernel %s/vmlinuz-%s ro root=%s %s\n" % (prefix, v, rootdev, options) - grub += " initrd %s/initramfs-%s.img\n" % (prefix, v) + grub += " initrd %s/%s-%s.img\n" % (prefix, initrd, v) logging.debug("Writing grub config %s/boot/grub/grub.conf" % self._instroot) cfg = open(self._instroot + "/boot/grub/grub.conf", "w") *** Bug 546134 has been marked as a duplicate of this bug. *** appliance-tools-004.5-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/appliance-tools-004.5-1.fc12 appliance-tools-004.5-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update appliance-tools'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1777 appliance-tools-004.5-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |