Fix non ventoy pickup
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 1m9s

This commit is contained in:
Ward from fusion-voyager-3 2024-12-19 17:49:50 +03:00
parent 92e40c94ee
commit 202e5789f3
3 changed files with 14 additions and 4 deletions

View File

@ -1 +1 @@
4 5

View File

@ -1,4 +1,4 @@
pika-live-booster-hooks (1.0-101pika3) pika; urgency=medium pika-live-booster-hooks (1.0-101pika4) pika; urgency=medium
* Initial release. * Initial release.

View File

@ -40,7 +40,17 @@ if [ "$QUIET_MODE" = false ]
then then
busybox echo '[PikaOS Booster Live Hook]: Searching for Live medium...' busybox echo '[PikaOS Booster Live Hook]: Searching for Live medium...'
fi fi
LIVE_MEDIA="$(busybox blkid | busybox grep "PikaOS 4" | busybox grep "iso9660" | busybox head -n1 | busybox awk -F: '{print $1}')" LIVE_MEDIA="$(busybox blkid | busybox grep "$ISO_LABEL_NAME_PARAM" | busybox grep "iso9660" | busybox head -n1 | busybox awk -F: '{print $1}')"
while [ -z "$LIVE_MEDIA" ]
do
if [ "$QUIET_MODE" = false ]
then
busybox echo '[PikaOS Booster Live Hook]: Live medium could not be found retrying...'
fi
LIVE_MEDIA="$(busybox blkid | busybox grep "$ISO_LABEL_NAME_PARAM" | busybox grep "iso9660" | busybox head -n1 | busybox awk -F: '{print $1}')"
((c++)) && ((c==10)) && break
busybox sleep 5
done
if [ -z "$LIVE_MEDIA" ] if [ -z "$LIVE_MEDIA" ]
then then
@ -60,7 +70,7 @@ then
do do
if [ "$QUIET_MODE" = false ] if [ "$QUIET_MODE" = false ]
then then
busybox echo '[PikaOS Booster Live Hook]: Ventoy Device not found retrying...' busybox echo '[PikaOS Booster Live Hook]: Ventoy Device could not found retrying...'
fi fi
VENTOY_DEVICE="$(busybox blkid | busybox grep "Ventoy" | busybox head -n1 | busybox awk -F: '{print $1}')" VENTOY_DEVICE="$(busybox blkid | busybox grep "Ventoy" | busybox head -n1 | busybox awk -F: '{print $1}')"
((c++)) && ((c==10)) && break ((c++)) && ((c==10)) && break