Add lshw package to ironic-agent

This patch add the lshw utils to allow the agent
to retrive the vendor name. It also keeps the
/usr/share/misc/pci.ids file for Ubuntu distro.

Change-Id: I2828a7e585449f63887ad5a2e338b4e043d68e63
This commit is contained in:
Moshe Levi 2016-03-07 10:12:13 +02:00
parent 8e9c54d01a
commit 9074f5f1fc
2 changed files with 6 additions and 1 deletions

View file

@ -21,6 +21,10 @@ sudo ln -s ./sbin/init ./
# Remove python object files, they're not particularly useful for a ramdisk
sudo find ./usr -name "*.pyc" -or -name "*.pyo" -delete
# Note: The pci.ids, which is used by lshw, locate on Ubuntu
# in /usr/share/misc. Therefore we are removing only the
# ./usr/share/misc/m* (will remove the magic and magic.mgc files).
# on RHEL pci.ids is locate on /usr/share/hwdata/pci.ids.
sudo find . -xdev \
-path './sys/*' -prune -o \
-path './tmp/*' -prune -o \
@ -31,7 +35,7 @@ sudo find . -xdev \
-path './usr/share/man/*' -prune -o \
-path './usr/share/info/*' -prune -o \
-path './usr/share/licenses/*' -prune -o \
-path './usr/share/misc/*' -prune -o \
-path './usr/share/misc/m*' -prune -o \
-print | sudo cpio -o -H newc | gzip > ${IMAGE_PATH}.initramfs
select_boot_kernel_initrd $TARGET_ROOT

View file

@ -11,3 +11,4 @@ util-linux:
genisoimage:
gdisk:
kmod:
lshw: