From c24661c44a5aa66d12c4e7cffac1e862abc40fa9 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Mon, 16 Dec 2024 03:58:45 +0300 Subject: [PATCH] f --- hooks/4-booster-setup.chroot | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/hooks/4-booster-setup.chroot b/hooks/4-booster-setup.chroot index f9c0379..6ea33ec 100755 --- a/hooks/4-booster-setup.chroot +++ b/hooks/4-booster-setup.chroot @@ -18,31 +18,28 @@ MEDIUM_LABEL="PikaOS 4" #TMPFS_SIZE="3G" ### Create mounting dirs -mkdir -p /mnt/medium /mnt/filesystem /mnt/overlay /booster.root +busybox mkdir -p /mnt/medium /mnt/filesystem /mnt/overlay /booster.root ### Mount live medium -mount -o ro "$(findfs LABEL="$MEDIUM_LABEL" | head -n1)" /mnt/medium - -### Load loop module if not already loaded -modprobe loop +busybox mount -o ro "$(busybox findfs LABEL="$MEDIUM_LABEL" | busybox head -n1)" /mnt/medium ### Create loop from squashfs #losetup /dev/loop69 /mnt/medium/live/filesystem.squashfs ## Mount squashfs loop #mount -o ro /dev/loop69 /mnt/filesystem -mount -o loop,ro /mnt/medium/live/filesystem.squashfs /mnt/filesystem +busybox mount -o loop,ro /mnt/medium/live/filesystem.squashfs /mnt/filesystem ### Mount tmpfs on ram #mount -t tmpfs -o size="$TMPFS_SIZE",mode=1777 overlay_tmpfs /mnt/overlay -mount -t tmpfs -o mode=1777 overlay_tmpfs /mnt/overlay +busybox mount -t tmpfs -o mode=1777 overlay_tmpfs /mnt/overlay ### Create overlay dirs -mkdir -p /mnt/overlay/upper /mnt/overlay/work + busyboxmkdir -p /mnt/overlay/upper /mnt/overlay/work ### Create merged overlay -mount -t overlay overlay -o lowerdir=/mnt/filesystem:/mnt/medium,upperdir=/mnt/overlay/upper,workdir=/mnt/overlay/work /booster.root +busybox mount -t overlay overlay -o lowerdir=/mnt/filesystem:/mnt/medium,upperdir=/mnt/overlay/upper,workdir=/mnt/overlay/work /booster.root ### mount kernel filesystems #mount -n -t devtmpfs devtmpfs /booster.root/dev