X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/be50ea69aaf2a18b9801c04efea19825d7f34c44..1bf3e73373ccf4d515e4b554b5d8e233aaf1e6f3:/IMG/cpio/ventoy/ventoy_chain.sh diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index 2c52e60..f8f0f5d 100644 --- a/IMG/cpio/ventoy/ventoy_chain.sh +++ b/IMG/cpio/ventoy/ventoy_chain.sh @@ -47,6 +47,12 @@ ventoy_get_os_type() { echo "kernel version" >> $VTLOG $CAT /proc/version >> $VTLOG + if [ -d /twres ]; then + if $GREP -q 'Phoenix' /init; then + echo 'phoenixos'; return + fi + fi + # rhel5/CentOS5 and all other distributions based on them if $GREP -q 'el5' /proc/version; then echo 'rhel5'; return @@ -93,6 +99,10 @@ ventoy_get_os_type() { # gentoo elif $EGREP -q '[Gg]entoo' /proc/version; then + if $GREP -q 'daphile' /proc/version; then + echo 'daphile'; return + fi + echo 'gentoo'; return # TinyCore @@ -119,10 +129,14 @@ ventoy_get_os_type() { elif $GREP -q 'Alpine' /proc/version; then echo 'alpine'; return + elif $GREP -i -q 'PhoenixOS' /proc/version; then + echo 'phoenixos'; return + # NixOS elif $GREP -i -q 'NixOS' /proc/version; then echo 'nixos'; return + fi if [ -e /lib/debian-installer ]; then @@ -227,6 +241,14 @@ ventoy_get_os_type() { echo 'vine'; return fi + if $GREP -q 'hyperbola' /proc/cmdline; then + echo 'hyperbola'; return + fi + + if $GREP -q 'CRUX' /proc/version; then + echo 'crux'; return + fi + echo "default" }