11#! /bin/bash
22# ==============================================================================
3- # LuminOS Build Script, Phase 3: Desktop Environment Installation
3+ # LuminOS Build Script - Phase 3: Desktop Environment Installation
44# Author: Gabriel, Project Leader @ LuminOS
5- # Version: 0.1.8
5+ # Version: 0.2.0 (Removed neofetch)
66# ==============================================================================
77set -e
88LUMINOS_CHROOT_DIR=" chroot"
@@ -20,41 +20,20 @@ cat > "$LUMINOS_CHROOT_DIR/tmp/install_desktop.sh" << "EOF"
2020set -e
2121export DEBIAN_FRONTEND=noninteractive
2222
23- echo "--> Forcing main Debian mirror..."
24- # Overwrite sources.list just to be sure we use the main mirror
25- cat > /etc/apt/sources.list << "SOURCES"
26- deb http://deb.debian.org/debian trixie main contrib non-free-firmware
27- deb http://security.debian.org/debian-security trixie-security main contrib non-free-firmware
28- deb http://deb.debian.org/debian trixie-updates main contrib non-free-firmware
29- SOURCES
30-
31- echo "--> Cleaning existing APT cache AND lists inside chroot..."
23+ echo "--> Cleaning existing APT cache inside chroot..."
3224apt-get clean
33- rm -rf /var/lib/apt/lists/* # Force removal of potentially corrupt lists
25+ rm -rf /var/lib/apt/lists/*
3426
35- echo "--> Updating package lists inside chroot (forcing main mirror) ..."
27+ echo "--> Updating package lists inside chroot..."
3628apt-get update
3729
3830echo "--> Installing Linux kernel and GRUB bootloader..."
39- # Keep debug options for now
40- apt-get install -y -o Debug::pkgProblemResolver=yes linux-image-amd64 grub-pc
41-
42- echo "--> Cleaning and Updating lists again before main desktop install..."
43- apt-get clean
44- rm -rf /var/lib/apt/lists/*
45- apt-get update
31+ apt-get install -y linux-image-amd64 grub-pc
4632
47- echo "--> Installing CORE KDE Plasma desktop and services (with debug)..."
33+ echo "--> Installing CORE KDE Plasma desktop and services..."
34+ # neofetch removed from this list
4835CORE_DESKTOP_PACKAGES="plasma-desktop konsole sddm network-manager"
49- apt-get install -y -o Debug::pkgProblemResolver=yes $CORE_DESKTOP_PACKAGES
50-
51- echo "--> Cleaning and Updating one last time before neofetch..."
52- apt-get clean
53- rm -rf /var/lib/apt/lists/*
54- apt-get update
55-
56- echo "--> Installing neofetch separately (with debug)..."
57- apt-get install -y -o Debug::pkgProblemResolver=yes neofetch
36+ apt-get install -y $CORE_DESKTOP_PACKAGES
5837
5938echo "--> Final cleaning of APT cache..."
6039apt-get clean
6443
6544chmod +x " $LUMINOS_CHROOT_DIR /tmp/install_desktop.sh"
6645
67- # --- Mounts, Chroot Execution, Unmounts remain the same ---
46+ # --- Mounts, Chroot Execution, Unmounts ---
6847echo " --> Mounting virtual filesystems for chroot..."
6948mount --bind /dev " $LUMINOS_CHROOT_DIR /dev" ; mount --bind /dev/pts " $LUMINOS_CHROOT_DIR /dev/pts" ; mount -t proc /proc " $LUMINOS_CHROOT_DIR /proc" ; mount -t sysfs /sys " $LUMINOS_CHROOT_DIR /sys"
7049
71- echo " --> Entering chroot to perform installation (verbose) ..."
50+ echo " --> Entering chroot to perform installation..."
7251chroot " $LUMINOS_CHROOT_DIR " env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /tmp/install_desktop.sh
7352
7453echo " --> Unmounting virtual filesystems..."
0 commit comments