summaryrefslogtreecommitdiffstats
path: root/python/run-python-tests
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2009-07-31 17:31:54 +0100
committerMatthew Booth <mbooth@redhat.com>2009-08-03 11:40:42 +0100
commite2fa1fe4efcb3bbfe5b7cc2e98b10357abb59422 (patch)
tree2af88632ffa58435b238278c962c100dc72c4bab /python/run-python-tests
parent1ba754119a43c4dd715d2e0a4637e50e10ac6987 (diff)
downloadlibguestfs-e2fa1fe4efcb3bbfe5b7cc2e98b10357abb59422.tar.gz
libguestfs-e2fa1fe4efcb3bbfe5b7cc2e98b10357abb59422.tar.xz
libguestfs-e2fa1fe4efcb3bbfe5b7cc2e98b10357abb59422.zip
Use grub entries to find Linux kernels
This change adds grub parsing to Lib.pm. It adds the following structure to $os: {boot} ->{configs} ->[0] ->{title} = "Fedora (2.6.29.6-213.fc11.i686.PAE)" ->{kernel} = \kernel ->{cmdline} = "ro root=/dev/mapper/vg_mbooth-lv_root rhgb" ->{initrd} = \initrd ->{default} = 0 The kernel and initrd entries are just references to their top level entries under kernels and initrd_modules respectively. It also changes the way Linux kernels and initrd are discovered. Instead of searching /lib/modules and /boot for files with matching names, kernels and initrds are scanned as they are discovered in grub.conf. Additionally, the following attributes are added to the kernels top level entry: * path The path to the kernel's vmlinuz file. * package The name of the package which installed the kernel. The xml output of virt-inspector is updated to reflect all of the above changes.
Diffstat (limited to 'python/run-python-tests')
0 files changed, 0 insertions, 0 deletions