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
d3138479
Commit
d3138479
authored
Aug 10, 2021
by
longpanda
Browse files
Fixe the boot issue for Untangle ISO (#1054)
parent
56a1543f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh
IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh
+5
-5
No files found.
IMG/cpio/ventoy/hook/debian/udev_disk_hook.sh
View file @
d3138479
...
@@ -41,18 +41,18 @@ ventoy_os_install_dmsetup() {
...
@@ -41,18 +41,18 @@ ventoy_os_install_dmsetup() {
fi
fi
# install md-modules
# install md-modules
LINE
=
$(
$GREP
' md-modules.*\.udeb'
$VTOY_PATH
/iso_file_list
)
LINE
=
$(
$GREP
-i
' md-modules.*\.udeb'
$VTOY_PATH
/iso_file_list
)
if
[
$?
-eq
0
]
;
then
if
[
$?
-eq
0
]
;
then
LINTCNT
=
$(
$GREP
-c
' md-modules.*\.udeb'
$VTOY_PATH
/iso_file_list
)
LINTCNT
=
$(
$GREP
-i
-c
' md-modules.*\.udeb'
$VTOY_PATH
/iso_file_list
)
if
[
$LINTCNT
-gt
1
]
;
then
if
[
$LINTCNT
-gt
1
]
;
then
vtlog
"more than one pkgs, need to filter..."
vtlog
"more than one pkgs, need to filter..."
VER
=
$(
$BUSYBOX_PATH
/uname
-r
)
VER
=
$(
$BUSYBOX_PATH
/uname
-r
)
LINE
=
$(
$GREP
' md-modules.*\.udeb'
$VTOY_PATH
/iso_file_list |
$GREP
$VER
)
LINE
=
$(
$GREP
-i
' md-modules.*\.udeb'
$VTOY_PATH
/iso_file_list |
$GREP
-i
$VER
)
LINTCNT
=
$(
$GREP
' md-modules.*\.udeb'
$VTOY_PATH
/iso_file_list |
$GREP
-c
$VER
)
LINTCNT
=
$(
$GREP
-i
' md-modules.*\.udeb'
$VTOY_PATH
/iso_file_list |
$GREP
-i
-c
$VER
)
if
[
$LINTCNT
-gt
1
]
;
then
if
[
$LINTCNT
-gt
1
]
;
then
vtlog
"Still more than one pkgs, use the first one..."
vtlog
"Still more than one pkgs, use the first one..."
LINE
=
$(
$GREP
' md-modules.*\.udeb'
$VTOY_PATH
/iso_file_list |
$GREP
-m1
$VER
)
LINE
=
$(
$GREP
-i
' md-modules.*\.udeb'
$VTOY_PATH
/iso_file_list |
$GREP
-i
-m1
$VER
)
fi
fi
fi
fi
install_udeb_from_line
"
$LINE
"
${
vt_usb_disk
}
install_udeb_from_line
"
$LINE
"
${
vt_usb_disk
}
...
...
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