apply add kylinsecos to supermin support
Dear all: apply add kylinsecos to supermin support. Modify the code as follows, diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml index 783d1bb..5061d32 100644 --- a/src/ph_rpm.ml +++ b/src/ph_rpm.ml @@ -32,12 +32,13 @@ let stringset_of_list pkgs = let fedora_detect () = Config.rpm <> "no" && Config.rpm2cpio <> "no" && rpm_is_available () && (Config.yumdownloader <> "no" || Config.dnf <> "no") && - (List.mem (Os_release.get_id ()) [ "fedora"; "rhel"; "centos"; "openEuler"; "anolis" ] || + (List.mem (Os_release.get_id ()) [ "fedora"; "rhel"; "centos"; "openEuler"; "anolis"; "KylinSecOS" ] || try (stat "/etc/redhat-release").st_kind = S_REG || (stat "/etc/fedora-release").st_kind = S_REG || (stat "/etc/openEuler-release").st_kind = S_REG || - (stat "/etc/anolis-release").st_kind = S_REG + (stat "/etc/anolis-release").st_kind = S_REG || + (stat "/etc/kylin-release").st_kind = S_REG with Unix_error _ -> false) let opensuse_detect () =
add patch file Ken Lee <weigangli99@gmail.com> 于2023年11月30日周四 07:37写道:
Dear all: apply add kylinsecos to supermin support. Modify the code as follows,
diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml index 783d1bb..5061d32 100644 --- a/src/ph_rpm.ml +++ b/src/ph_rpm.ml @@ -32,12 +32,13 @@ let stringset_of_list pkgs = let fedora_detect () = Config.rpm <> "no" && Config.rpm2cpio <> "no" && rpm_is_available () && (Config.yumdownloader <> "no" || Config.dnf <> "no") && - (List.mem (Os_release.get_id ()) [ "fedora"; "rhel"; "centos"; "openEuler"; "anolis" ] || + (List.mem (Os_release.get_id ()) [ "fedora"; "rhel"; "centos"; "openEuler"; "anolis"; "KylinSecOS" ] || try (stat "/etc/redhat-release").st_kind = S_REG || (stat "/etc/fedora-release").st_kind = S_REG || (stat "/etc/openEuler-release").st_kind = S_REG || - (stat "/etc/anolis-release").st_kind = S_REG + (stat "/etc/anolis-release").st_kind = S_REG || + (stat "/etc/kylin-release").st_kind = S_REG with Unix_error _ -> false)
let opensuse_detect () =
On Thu, Nov 30, 2023 at 08:09:55AM +0000, Ken Lee wrote:
add patch file
Thanks, I have pushed that upstream now. Sorry for the delay! Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
participants (2)
-
Ken Lee -
Richard W.M. Jones