mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-28 08:21:14 +00:00
Optimization for FreeBSD
This commit is contained in:
@@ -421,6 +421,11 @@ function ventoy_freebsd_proc {
|
||||
set vtFreeBsdDistro=FreeBSD
|
||||
set vt_freebsd_ver=xx
|
||||
|
||||
if [ -e (loop)/boot/kernel/geom_ventoy.ko ]; then
|
||||
vt_unix_ko_fillmap /boot/kernel/geom_ventoy.ko
|
||||
return
|
||||
fi
|
||||
|
||||
if vt_strstr "$vt_volume_id" "GHOSTBSD"; then
|
||||
ventoy_get_ghostbsd_ver "$1" "${chosen_path}"
|
||||
elif vt_strstr "$vt_volume_id" "FREENAS"; then
|
||||
@@ -472,10 +477,6 @@ function ventoy_freebsd_proc {
|
||||
set vt_freebsd_ver=9.x
|
||||
fi
|
||||
|
||||
if [ -e (loop)/boot/kernel/geom_ventoy.ko ]; then
|
||||
vt_unix_ko_fillmap /boot/kernel/geom_ventoy.ko
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -e (loop)/usr/freebsd-dist/cloninst.sh ]; then
|
||||
set vtFreeBsdDistro=ClonOS
|
||||
|
Reference in New Issue
Block a user