add austrumi support.(issue #637)

This commit is contained in:
longpanda 2020-12-15 17:42:15 +08:00
parent 0ac83bffda
commit 8b9901a6a5
2 changed files with 10 additions and 1 deletions

View File

@ -309,6 +309,10 @@ ventoy_get_os_type() {
echo 'primeos'; return
fi
if $GREP -q 'austrumi' /proc/version; then
echo 'austrumi'; return
fi
echo "default"
}

View File

@ -277,7 +277,12 @@ function distro_specify_initrd_file_phase2 {
vt_linux_specify_initrd_file /install.amd/gtk/initrd.gz
elif [ -f (loop)/boot/grub/kernels.cfg ]; then
vt_linux_parse_initrd_grub file (loop)/boot/grub/kernels.cfg
elif [ -f (loop)/austrumi/initrd.gz ]; then
vt_linux_specify_initrd_file /austrumi/initrd.gz
if [ -f (loop)/EFI/BOOT/bootx64.efi ]; then
vt_cpio_busybox64 "64h"
fi
fi
}