diff --git a/hooks/4-booster-setup.chroot b/hooks/4-booster-setup.chroot index 30c9069..49d837f 100755 --- a/hooks/4-booster-setup.chroot +++ b/hooks/4-booster-setup.chroot @@ -11,12 +11,13 @@ tee /usr/share/booster/hooks-early/pika_live.sh <<'EOF' set -e +# Mount the proc kernel temp mount busybox mount -n -t proc proc /proc +# Check if bootloader wants the hook to be executed busybox cat /proc/cmdline | busybox grep 'boot=live' || exit 0 busybox echo '[PikaOS Booster Live Hook]: boot=live detected in kernel cmdline, running LiveISO hooks...' -### Config busybox echo '[PikaOS Booster Live Hook]: Searching for Live medium...' LIVE_MEDIA="$(busybox findfs LABEL="PikaOS 4" | busybox head -n1)" @@ -27,8 +28,7 @@ then if [ -f '/usr/share/booster/ventoy_injection.tar.xz' ] then busybox echo '[PikaOS Booster Live Hook]: Extracting Ventoy injection archive.' - busybox tar -xvf '/usr/share/booster/ventoy_injection.tar.xz' -C / - /ventoy/busybox/sh /ventoy/hook/debian/disk_mount_hook.sh + tar -xf '/usr/share/booster/ventoy_injection.tar.xz' -C / /ventoy/busybox/sh /ventoy/hook/debian/antix-disk.sh else busybox echo '[PikaOS Booster Live Hook]: Error: Ventoy injection archive could not be found!'