Skip to content

Commit dae534e

Browse files
authored
fix(build): Remove neofetch due to persistent apt issues
1 parent 9149428 commit dae534e

File tree

1 file changed

+11
-32
lines changed

1 file changed

+11
-32
lines changed

03-install-desktop.sh

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
# ==============================================================================
77
set -e
88
LUMINOS_CHROOT_DIR="chroot"
@@ -20,41 +20,20 @@ cat > "$LUMINOS_CHROOT_DIR/tmp/install_desktop.sh" << "EOF"
2020
set -e
2121
export 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..."
3224
apt-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..."
3628
apt-get update
3729
3830
echo "--> 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
4835
CORE_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
5938
echo "--> Final cleaning of APT cache..."
6039
apt-get clean
@@ -64,11 +43,11 @@ EOF
6443

6544
chmod +x "$LUMINOS_CHROOT_DIR/tmp/install_desktop.sh"
6645

67-
# --- Mounts, Chroot Execution, Unmounts remain the same ---
46+
# --- Mounts, Chroot Execution, Unmounts ---
6847
echo "--> Mounting virtual filesystems for chroot..."
6948
mount --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..."
7251
chroot "$LUMINOS_CHROOT_DIR" env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /tmp/install_desktop.sh
7352

7453
echo "--> Unmounting virtual filesystems..."

0 commit comments

Comments
 (0)