diff options
| author | gigagamerchaddhruv-spec <gigagamerchaddhruv@gmail.com> | 2026-02-28 12:53:36 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-28 12:53:36 +0530 |
| commit | 43f4b47b7b63f0a14978b14b045ae27b1adf6cb5 (patch) | |
| tree | 200a0030378f98238c4c1511ad6b888faff2e926 | |
| parent | 343f14a89bf1de6a4ea4891909be89f13bb0cdb0 (diff) | |
Update build.sh
| -rw-r--r-- | build.sh | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -1,20 +1,20 @@ #!/bin/bash # ================================================================= -# LacOS Build Script - MODERN GRUB/XORRISO EDITION +# LacOS Build Script - RELIABLE EXTRACTION EDITION # ================================================================= -# 1. Install Build & Remastering Tools +# 1. Install Build Tools sudo apt-get update -sudo apt-get install -y squashfs-tools xorriso wget git unzip dbus-x11 curl isolinux +sudo apt-get install -y squashfs-tools xorriso wget git unzip dbus-x11 curl p7zip-full isolinux # 2. Download Official Linux Mint 21.3 ISO wget --user-agent="Mozilla/5.0" -O mint.iso https://mirrors.kernel.org -# 3. Extract ISO and SquashFS -mkdir mnt source -sudo mount -o loop mint.iso mnt -cp -a mnt/* source/ -sudo umount mnt +# 3. Extract ISO using 7zip (No mounting needed!) +mkdir source +7z x mint.iso -osource/ + +# Extract SquashFS sudo unsquashfs -d squashfs-root source/casper/filesystem.squashfs # 4. CUSTOMIZE: The LacOS Transformation @@ -98,11 +98,12 @@ DCONF apt-get clean EOF -# 5. Package the Final ISO with XORRISO (Modern GRUB/EFI Support) +# 5. Package the Final ISO with XORRISO (Modern Hybrid Boot) +# Note: Mint 21.3 uses EFI/boot/bootx64.efi for UEFI xorriso -as mkisofs \ -iso-level 3 -full-iso9660-filenames \ -volid "LacOS-Sequoia" \ - -eltorito-boot boot/grub/porterefi.bin \ + -eltorito-boot boot/isolinux/isolinux.bin \ -no-emul-boot -boot-load-size 4 -boot-info-table \ -eltorito-alt-boot \ -e boot/grub/efi.img \ |
