# and package management.
my ($package_format, $package_management);
if (defined $distro) {
- if ($distro eq "debian") {
+ if ($distro eq "archlinux") {
+ $package_format = "pacman";
+ $package_management = "pacman";
+ }
+ elsif ($distro eq "debian") {
$package_format = "deb";
$package_management = "apt";
}
if (parse_major_minor (g, fs) == -1)
return -1;
}
+ else if (guestfs_exists (g, "/etc/arch-release") > 0) {
+ fs->distro = OS_DISTRO_ARCHLINUX;
+
+ /* /etc/arch-release file is empty and I can't see a way to
+ * determine the actual release or product string.
+ */
+ }
/* Determine the architecture. */
const char *binaries[] =
char *ret;
switch (fs->distro) {
+ case OS_DISTRO_ARCHLINUX: ret = safe_strdup (g, "archlinux"); break;
case OS_DISTRO_DEBIAN: ret = safe_strdup (g, "debian"); break;
case OS_DISTRO_FEDORA: ret = safe_strdup (g, "fedora"); break;
case OS_DISTRO_PARDUS: ret = safe_strdup (g, "pardus"); break;