Skip to content

Commit

Permalink
Fix an issue when booting StorageCraft StorageProtect SPX. (#1683)
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Jun 19, 2022
1 parent b976923 commit ecbf45d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion IMG/cpio/ventoy/hook/rhel7/ventoy-inotifyd-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ if is_inotify_ventoy_part $3; then
if [ -e $vtGenRulFile ] && $GREP -q dmsquash $vtGenRulFile; then
vtScript=$($GREP -m1 'RUN.=' $vtGenRulFile | $AWK -F'RUN.=' '{print $2}' | $SED 's/"\(.*\)".*/\1/')
vtlog "vtScript=$vtScript"
$vtScript

if $GREP -q SCRE /proc/cmdline; then
/sbin/dmsquash-live-root /dev/ventoy
else
$vtScript
fi
else
vtlog "$vtGenRulFile not exist..."
fi
Expand Down

0 comments on commit ecbf45d

Please sign in to comment.