"No package busybox available." error when using centos7 ramdisk-image-create
Bug #1397073 reported by
Pedro Sousa
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hi,
I'm trying to create a ramdisk for centos7 using this command:
#ramdisk-
and I get this error:
dib-run-parts Thu Nov 27 18:07:12 UTC 2014 51-discovery-
dib-run-parts Thu Nov 27 18:07:12 UTC 2014 Running /tmp/in_
Running install-packages install. Package list: busybox
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.dei.uc.pt
* epel: mir01.syntis.net
* extras: ftp.dei.uc.pt
* updates: ftp.dei.uc.pt
No package busybox available.
Error: Nothing to do
Regards
To post a comment you must log in.
To build a ramdisk on rhel or centos you need to pass '--ramdisk-element dracut-ramdisk' to disk-image-create. RHEL and Centos don't have busybox so they can't use the default ramdisk element.
So while this isn't really a bug, I do think it would be good to come up with some sort of better way to handle the error, which is why I'm leaving this open as opinion instead of closing it. Maybe we could add an explicit check to the ramdisk element and if busybox isn't available we could recommend the dracut version?