Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
1ee65a60
Commit
1ee65a60
authored
Jun 20, 2022
by
longpanda
Browse files
Fix a bug when booting TrueNAS Core 13.0. (#1684)
parent
ecbf45de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_unix.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_unix.c
+6
-2
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_unix.c
View file @
1ee65a60
...
...
@@ -445,12 +445,16 @@ grub_err_t ventoy_cmd_parse_freenas_ver(grub_extcmd_context_t ctxt, int argc, ch
ver
=
vtoy_json_get_string_ex
(
json
->
pstChild
,
"Version"
);
if
(
ver
)
{
debug
(
"freenas version:<%s>
\n
"
,
ver
);
debug
(
"NAS version:<%s>
\n
"
,
ver
);
if
(
grub_strncmp
(
ver
,
"TrueNAS-"
,
8
)
==
0
)
{
ver
+=
8
;
}
ventoy_set_env
(
args
[
1
],
ver
);
}
else
{
debug
(
"
freenas
version:<%s>
\n
"
,
"NOT FOUND"
);
debug
(
"
NAS
version:<%s>
\n
"
,
"NOT FOUND"
);
grub_env_unset
(
args
[
1
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment