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 | |
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')
-rw-r--r-- | src/guestfs-internal.h | 1 | ||||
-rw-r--r-- | src/inspect.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h index 4f64e9a5..ee049488 100644 --- a/src/guestfs-internal.h +++ b/src/guestfs-internal.h @@ -170,6 +170,7 @@ enum inspect_os_distro { OS_DISTRO_ARCHLINUX, OS_DISTRO_GENTOO, OS_DISTRO_UBUNTU, + OS_DISTRO_MEEGO, }; struct inspect_fs { 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; |