f
This commit is contained in:
parent
498a9e57e2
commit
78df3d8921
@ -11,12 +11,13 @@ tee /usr/share/booster/hooks-early/pika_live.sh <<'EOF'
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Mount the proc kernel temp mount
|
||||||
busybox mount -n -t proc proc /proc
|
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 cat /proc/cmdline | busybox grep 'boot=live' || exit 0
|
||||||
busybox echo '[PikaOS Booster Live Hook]: boot=live detected in kernel cmdline, running LiveISO hooks...'
|
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...'
|
busybox echo '[PikaOS Booster Live Hook]: Searching for Live medium...'
|
||||||
LIVE_MEDIA="$(busybox findfs LABEL="PikaOS 4" | busybox head -n1)"
|
LIVE_MEDIA="$(busybox findfs LABEL="PikaOS 4" | busybox head -n1)"
|
||||||
|
|
||||||
@ -27,8 +28,7 @@ then
|
|||||||
if [ -f '/usr/share/booster/ventoy_injection.tar.xz' ]
|
if [ -f '/usr/share/booster/ventoy_injection.tar.xz' ]
|
||||||
then
|
then
|
||||||
busybox echo '[PikaOS Booster Live Hook]: Extracting Ventoy injection archive.'
|
busybox echo '[PikaOS Booster Live Hook]: Extracting Ventoy injection archive.'
|
||||||
busybox tar -xvf '/usr/share/booster/ventoy_injection.tar.xz' -C /
|
tar -xf '/usr/share/booster/ventoy_injection.tar.xz' -C /
|
||||||
/ventoy/busybox/sh /ventoy/hook/debian/disk_mount_hook.sh
|
|
||||||
/ventoy/busybox/sh /ventoy/hook/debian/antix-disk.sh
|
/ventoy/busybox/sh /ventoy/hook/debian/antix-disk.sh
|
||||||
else
|
else
|
||||||
busybox echo '[PikaOS Booster Live Hook]: Error: Ventoy injection archive could not be found!'
|
busybox echo '[PikaOS Booster Live Hook]: Error: Ventoy injection archive could not be found!'
|
||||||
|
Loading…
Reference in New Issue
Block a user