Skip to content

Commit 39b2aff

Browse files
authored
debug(build): Add verbose apt output to phase 3
1 parent 49815c9 commit 39b2aff

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

03-install-desktop.sh

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

33
# ==============================================================================
4-
# LuminOS Build Script - Phase 3: Desktop Environment Installation
4+
# LuminOS Build Script, Phase 3: Desktop Environment Installation
55
#
66
# Author: Gabriel, Project Leader @ LuminOS
7-
# Version: 0.1.3
7+
# Version: 0.1.4 (Debug Verbose APT)
88
# ==============================================================================
99

1010
set -e
@@ -17,19 +17,40 @@ echo "====================================================="
1717
echo "PHASE 3: Installing Kernel and Desktop"
1818
echo "====================================================="
1919

20-
cat > "$LUMINOS_CHROOT_DIR/tmp/install_desktop.sh" # ... (Le contenu du script interne reste identique)
20+
cat > "$LUMINOS_CHROOT_DIR/tmp/install_desktop.sh" << "EOF"
21+
#!/bin/bash
22+
set -e
23+
export DEBIAN_FRONTEND=noninteractive
24+
25+
echo "--> Updating package lists inside chroot..."
26+
apt-get update
27+
28+
echo "--> Installing Linux kernel and GRUB bootloader..."
29+
# Add debug options for apt
30+
apt-get install -y -o Debug::pkgProblemResolver=yes linux-image-amd64 grub-pc
31+
32+
echo "--> Installing KDE Plasma desktop and essential services (with debug)..."
33+
DESKTOP_PACKAGES="plasma-desktop konsole sddm network-manager neofetch"
34+
# Add debug options for apt
35+
apt-get install -y -o Debug::pkgProblemResolver=yes $DESKTOP_PACKAGES
36+
37+
echo "--> Cleaning up APT cache..."
38+
apt-get clean
39+
rm /tmp/install_desktop.sh
40+
EOF
2141

2242
chmod +x "$LUMINOS_CHROOT_DIR/tmp/install_desktop.sh"
2343

2444
echo "--> Mounting virtual filesystems for chroot..."
2545
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"
2646

27-
echo "--> Entering chroot to perform installation..."
47+
echo "--> Entering chroot to perform installation (verbose)..."
2848
chroot "$LUMINOS_CHROOT_DIR" env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /tmp/install_desktop.sh
2949

3050
echo "--> Unmounting virtual filesystems..."
3151
umount "$LUMINOS_CHROOT_DIR/sys"; umount "$LUMINOS_CHROOT_DIR/proc"; umount "$LUMINOS_CHROOT_DIR/dev/pts"; umount "$LUMINOS_CHROOT_DIR/dev"
3252

33-
echo -e "\nSUCCESS: Kernel and desktop environment installed."
53+
echo ""
54+
echo "SUCCESS: Kernel and desktop environment installed."
3455
echo "Next step: 04-customize-desktop.sh"
3556
exit 0

0 commit comments

Comments
 (0)