diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-11-02 10:11:04 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-11-02 10:11:04 +0000 |
commit | f0c28b391c2ca6d8be4b7b7313042a6b3eb4dc8c (patch) | |
tree | 6e93956b62003fc32fe762e5fabafb0f96340586 /src/inspect.c | |
parent | bf0280bf589573c11529999a73e9ec642dea9d61 (diff) | |
download | libguestfs-f0c28b391c2ca6d8be4b7b7313042a6b3eb4dc8c.tar.gz libguestfs-f0c28b391c2ca6d8be4b7b7313042a6b3eb4dc8c.tar.xz libguestfs-f0c28b391c2ca6d8be4b7b7313042a6b3eb4dc8c.zip |
inspect: Add support for MeeGo.stable-1.6
Diffstat (limited to 'src/inspect.c')
-rw-r--r-- | src/inspect.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/inspect.c b/src/inspect.c index 33da1441..e7b1e413 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -818,6 +818,15 @@ check_linux_root (guestfs_h *g, struct inspect_fs *fs) if (parse_major_minor (g, fs) == -1) return -1; } + else if (guestfs_exists (g, "/etc/meego-release") > 0) { + fs->distro = OS_DISTRO_MEEGO; + + if (parse_release_file (g, fs, "/etc/meego-release") == -1) + return -1; + + if (parse_major_minor (g, fs) == -1) + return -1; + } skip_release_checks:; @@ -1338,6 +1347,7 @@ guestfs__inspect_get_distro (guestfs_h *g, const char *root) case OS_DISTRO_DEBIAN: ret = safe_strdup (g, "debian"); break; case OS_DISTRO_FEDORA: ret = safe_strdup (g, "fedora"); break; case OS_DISTRO_GENTOO: ret = safe_strdup (g, "gentoo"); break; + case OS_DISTRO_MEEGO: ret = safe_strdup (g, "meego"); break; case OS_DISTRO_PARDUS: ret = safe_strdup (g, "pardus"); break; case OS_DISTRO_REDHAT_BASED: ret = safe_strdup (g, "redhat-based"); break; case OS_DISTRO_RHEL: ret = safe_strdup (g, "rhel"); break; |