diff options
author | Michael Scherer <misc@zarb.org> | 2011-10-14 01:05:01 +0200 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-10-14 10:01:40 +0100 |
commit | 7d4a99db87b9fe9373b482092db88610fb796012 (patch) | |
tree | 4996b113683524effebe9944149ef4cee1d43508 /src/inspect_fs_unix.c | |
parent | 787baf1bad89aecf4d01738fb8344e4446eb5ba1 (diff) | |
download | libguestfs-7d4a99db87b9fe9373b482092db88610fb796012.tar.gz libguestfs-7d4a99db87b9fe9373b482092db88610fb796012.tar.xz libguestfs-7d4a99db87b9fe9373b482092db88610fb796012.zip |
Detect Mageia distribution
Diffstat (limited to 'src/inspect_fs_unix.c')
-rw-r--r-- | src/inspect_fs_unix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c index 00d3cd7d..689fdb51 100644 --- a/src/inspect_fs_unix.c +++ b/src/inspect_fs_unix.c @@ -214,6 +214,11 @@ parse_lsb_release (guestfs_h *g, struct inspect_fs *fs) fs->distro = OS_DISTRO_MANDRIVA; r = 1; } + else if (fs->distro == 0 && + STREQ (lines[i], "DISTRIB_ID=\"Mageia\"")) { + fs->distro = OS_DISTRO_MAGEIA; + r = 1; + } else if (STRPREFIX (lines[i], "DISTRIB_RELEASE=")) { char *major, *minor; if (match2 (g, &lines[i][16], re_major_minor, &major, &minor)) { |