[Libosinfo] [libosinfo PATCH 0/1] Print os variants info for osinfo-detect --format=env
Fabiano Fidêncio
fidencio at redhat.com
Fri Apr 12 09:58:41 UTC 2019
When using the plain format the os variants are already taken into
account. However, it's never been printed, neither for medias nor for
trees, when using the env output format.
The output before this patch looks like:
fidencio at laerte ~/src/upstream/libosinfo $ ./tools/osinfo-detect -f env https://ftp.fau.de/fedora/linux/releases/29/Server/x86_64/os/images/boot.iso
OSINFO_BOOTABLE=1
OSINFO_INSTALLER=http://fedoraproject.org/fedora/29
OSINFO_MEDIA=http://fedoraproject.org/fedora/29:3
fidencio at laerte ~/src/upstream/libosinfo $ ./tools/osinfo-detect -f env -t tree https://ftp.fau.de/fedora/linux/releases/29/Server/x86_64/os
OSINFO_INSTALLER=http://fedoraproject.org/fedora/29
OSINFO_TREE=http://fedoraproject.org/fedora/29:1
OSINFO_TREE_KERNEL=images/pxeboot/vmlinuz
OSINFO_TREE_INITRD=images/pxeboot/initrd.img
OSINFO_TREE_BOOT_ISO=images/boot.iso
And after this patch:
- For entries containing only one variant-id:
fidencio at laerte ~/src/upstream/libosinfo $ ./tools/osinfo-detect -f env https://ftp.fau.de/fedora/linux/releases/29/Server/x86_64/os/images/boot.iso
OSINFO_BOOTABLE=1
OSINFO_INSTALLER=http://fedoraproject.org/fedora/29
OSINFO_MEDIA=http://fedoraproject.org/fedora/29:3
OSINFO_MEDIA_VARIANTS=Fedora 29 Server
fidencio at laerte ~/src/upstream/libosinfo $ ./tools/osinfo-detect -f env -t tree https://ftp.fau.de/fedora/linux/releases/29/Server/x86_64/os
OSINFO_INSTALLER=http://fedoraproject.org/fedora/29
OSINFO_TREE=http://fedoraproject.org/fedora/29:1
OSINFO_TREE_KERNEL=images/pxeboot/vmlinuz
OSINFO_TREE_INITRD=images/pxeboot/initrd.img
OSINFO_TREE_BOOT_ISO=images/boot.iso
OSINFO_TREE_VARIANTS=Fedora 29 Server
- For entries containing more than one variant-id:
fidencio at laerte ~/src/upstream/libosinfo $ ./tools/osinfo-detect -f env https://ftp.fau.de/fedora/linux/releases/29/Server/x86_64/os/images/boot.iso
OSINFO_BOOTABLE=1
OSINFO_INSTALLER=http://fedoraproject.org/fedora/29
OSINFO_MEDIA=http://fedoraproject.org/fedora/29:3
OSINFO_MEDIA_VARIANTS=Fedora 29 Server, Fedora 29 Workstation
fidencio at laerte ~/src/upstream/libosinfo $ ./tools/osinfo-detect -f env -t tree https://ftp.fau.de/fedora/linux/releases/29/Server/x86_64/os
OSINFO_INSTALLER=http://fedoraproject.org/fedora/29
OSINFO_TREE=http://fedoraproject.org/fedora/29:1
OSINFO_TREE_KERNEL=images/pxeboot/vmlinuz
OSINFO_TREE_INITRD=images/pxeboot/initrd.img
OSINFO_TREE_BOOT_ISO=images/boot.iso
OSINFO_TREE_VARIANTS=Fedora 29 Server, Fedora 29 Workstation
Note that, at this point, entries containing more than one variant-id are
non-existent in our database and the output showed above is just one
example showing how it's going to look like ... the example was produced
after adding more than one os-variant to the spefici tree/media in the
fedora-29 entry.
Fabiano Fidêncio (1):
osinfo-detect: print os variants info for env format
tools/osinfo-detect.c | 47 ++++++++++++++++++++++++++++++++++---------
1 file changed, 37 insertions(+), 10 deletions(-)
--
2.20.1
More information about the Libosinfo
mailing list