Skip to content

Commit bee3d35

Browse files
authored
fix(build): Enable ISO (9660) level 3 to support files larger than 4GB
1 parent e1480e8 commit bee3d35

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

build.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
set -e
33

4-
echo "====== LUMINOS MASTER BUILD SCRIPT (v6.1 - Smart Path Search) ======"
5-
if [ "$(id -u)" -ne 0 ]; then echo "ERROR: This script must be run as root"; exit 1; fi
4+
echo "====== LUMINOS MASTER BUILD SCRIPT (v6.3 - Large File Support) ======"
5+
if [ "$(id -u)" -ne 0 ]; then echo "ERROR: This script must be run as root."; exit 1; fi
66

77
# --- 1. Define Directories & Vars ---
88
BASE_DIR=$(dirname "$(readlink -f "$0")")
@@ -39,16 +39,15 @@ echo "====================================================="
3939
TARGET_MODEL_DIR="${AI_BUILD_DIR}/models"
4040
mkdir -p "${TARGET_MODEL_DIR}"
4141

42-
# Detect the real user behind sudo to find their home
42+
# Detect User Home
4343
REAL_USER="${SUDO_USER:-$USER}"
4444
USER_HOME=$(getent passwd "$REAL_USER" | cut -d: -f6)
4545

46-
# List of all possible places the model might be
4746
POSSIBLE_LOCATIONS=(
4847
"${USER_HOME}/.ollama/models"
49-
"/root/.ollama/models"
5048
"/usr/share/ollama/.ollama/models"
5149
"/var/lib/ollama/.ollama/models"
50+
"/root/.ollama/models"
5251
)
5352

5453
MODEL_FOUND=false
@@ -199,8 +198,9 @@ menuentry "LuminOS v0.2.1 Live" {
199198
}
200199
EOF
201200

202-
echo "--> Generating ISO image..."
203-
grub-mkrescue -o "${BASE_DIR}/${ISO_NAME}" "${ISO_DIR}"
201+
echo "--> Generating ISO image (Level 3 for Large Files)..."
202+
# Added -- -iso-level 3 to allow files > 4GB
203+
grub-mkrescue -o "${BASE_DIR}/${ISO_NAME}" "${ISO_DIR}" -- -iso-level 3
204204

205205
echo "--> Cleaning up work directory..."
206206
sudo rm -rf "${WORK_DIR}"
@@ -213,7 +213,7 @@ if [ -f "${BASE_DIR}/${ISO_NAME}" ]; then
213213
ISO_SIZE=$(du -h "${BASE_DIR}/${ISO_NAME}" | cut -f1)
214214
echo "ISO Size: $ISO_SIZE"
215215
else
216-
echo "ERROR: Build finished but ISO file not found."
216+
echo "ERROR: Build finished but ISO file... not found?!"
217217
exit 1
218218
fi
219219
echo "========================================="

0 commit comments

Comments
 (0)