X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/6630ab35850c735d2b9aa241ca6b1e549c8f52e4..966ed21de7dfd77dddfa26bab5c8b4af8a73c99e:/IMG/cpio/ventoy/hook/debian/default-hook.sh?ds=sidebyside diff --git a/IMG/cpio/ventoy/hook/debian/default-hook.sh b/IMG/cpio/ventoy/hook/debian/default-hook.sh index e9873d8..5db56e3 100644 --- a/IMG/cpio/ventoy/hook/debian/default-hook.sh +++ b/IMG/cpio/ventoy/hook/debian/default-hook.sh @@ -54,9 +54,20 @@ fi if [ -f $VTOY_PATH/autoinstall ]; then echo "Do auto install ..." >> $VTLOG - if $GREP -q "^mount /proc$" /init; then - $SED "/^mount \/proc/a export file=$VTOY_PATH/autoinstall; export auto='true'; export priority='critical'" -i /init + if $GREP -q '^autoinstall:' $VTOY_PATH/autoinstall; then + echo "cloud-init auto install ..." >> $VTLOG + if $GREP -q "maybe_break init" /init; then + $SED "/maybe_break init/i $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/ventoy-cloud-init.sh \$rootmnt" -i /init + fi + else + if $GREP -q "^mount /proc$" /init; then + $SED "/^mount \/proc/a export file=$VTOY_PATH/autoinstall; export auto='true'; export priority='critical'" -i /init + fi fi + + # if [ -e /bin/check-missing-firmware ]; then + # $SED "/^#!/a\exit 0" -i /bin/check-missing-firmware + # fi fi #for ARMA aka Omoikane @@ -72,5 +83,8 @@ if [ -f /mod.img ] && [ -f /mod/fs/cramfs.ko ]; then $BUSYBOX_PATH/rmmod cramfs fi - +#for siduction-patience-nox- +if [ -f /scripts/fll ]; then + $SED "/unset FINGERED/a\\echo '/dev/mapper/ventoy';return;" -i /scripts/fll +fi