Skip to content

Commit 9cc13d4

Browse files
authored
fix(build): Add essential apt packages to debootstrap
1 parent ac3e25f commit 9cc13d4

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

01-build-base-system.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
#!/bin/bash
22
# ==============================================================================
33
# LuminOS Build Script, Phase 1: Base System
4-
#
54
# Author: Gabriel, Project Leader @ LuminOS
6-
# Version: 0.1.3
5+
# Version: 0.1.5
76
# ==============================================================================
87
set -e
98
LUMINOS_CHROOT_DIR="chroot"
109
LUMINOS_DISTRIBUTION="trixie"
1110
LUMINOS_ARCH="amd64"
12-
# Added 'locales' to ensure it's present from the very beginning.
13-
LUMINOS_PACKAGES="build-essential,git,curl,wget,ssh,htop,unzip,p7zip-full,neovim,locales"
11+
LUMINOS_COMPONENTS="main,contrib,non-free-firmware"
12+
# Added apt-transport-https and ca-certificates for robust apt function
13+
LUMINOS_PACKAGES="build-essential,git,curl,wget,ssh,htop,unzip,p7zip-full,neovim,locales,apt-transport-https,ca-certificates"
1414

15-
if [ "$(id -u)" -ne 0 ]; then
16-
echo "ERROR: This script must be run as root (or with sudo)."
17-
exit 1
18-
fi
15+
if [ "$(id -u)" -ne 0 ]; then echo "ERROR: Must run as root."; exit 1; fi
1916
if ! command -v debootstrap &> /dev/null; then
2017
echo "INFO: debootstrap is not installed. Installing now..."
2118
apt-get update
@@ -28,7 +25,8 @@ fi
2825
echo "====================================================="
2926
echo "PHASE 1: Creating LuminOS Base System"
3027
echo "====================================================="
31-
debootstrap --arch=$LUMINOS_ARCH --include=$LUMINOS_PACKAGES $LUMINOS_DISTRIBUTION $LUMINOS_CHROOT_DIR http://deb.debian.org/debian
28+
debootstrap --arch=$LUMINOS_ARCH --include=$LUMINOS_PACKAGES --components=$LUMINOS_COMPONENTS $LUMINOS_DISTRIBUTION $LUMINOS_CHROOT_DIR http://deb.debian.org/debian
29+
3230
echo ""
3331
echo "SUCCESS: LuminOS base system created in '$LUMINOS_CHROOT_DIR'."
3432
echo "Next step: 02-configure-system.sh"

0 commit comments

Comments
 (0)