[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] 3 commits: run-at-firstboot: Launch debian-edu-ltsp-install with a clean environment. (Closes: #1153505).
Mike Gabriel (@sunweaver)
gitlab at salsa.debian.org
Mon Nov 9 12:24:06 GMT 2026
Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config
Commits:
b448eb2a by Mike Gabriel at 2026-11-09T13:22:59+01:00
run-at-firstboot: Launch debian-edu-ltsp-install with a clean environment. (Closes: #1153505).
Esp. don't expose run-at-firstboot parsed-in debconf paramters to
debian-edu-ltsp-install script runs.
- - - - -
9f104e88 by Mike Gabriel at 2026-11-09T13:22:59+01:00
debian-edu-ltsp-install: Obtain LANG variable from LOCALE variable in /etc/debian-edu/config
Fixes locale being undefined during DLW / X2GoTC chroot creation.
- - - - -
7423bdeb by Mike Gabriel at 2026-11-09T13:22:59+01:00
debian-edu-ltsp-install: White-space fix
- - - - -
2 changed files:
- sbin/debian-edu-ltsp-install
- share/debian-edu-config/tools/run-at-firstboot
Changes:
=====================================
sbin/debian-edu-ltsp-install
=====================================
@@ -116,6 +116,10 @@ fi
if [ -r /etc/debian-edu/config ] ; then
. /etc/debian-edu/config
+ # Obtained from /etc/debian-edu/config
+ if [ -n "${LOCALE}" ]; then
+ export LANG="${LOCALE}"
+ fi
fi
# Grab dist value for both testing and stable release cases.
@@ -481,7 +485,7 @@ export DEBIAN_FRONTEND=noninteractive
if ! [ "" == "$thin_type" ] && [ ! -d /srv/tftp/ltsp/x2go-"$thin_type"-"$arch"/etc/ltsp ] ; then
mkdir -p /srv/tftp/ltsp/x2go-"$thin_type"-"$arch"
# Install common thin client packages.
-debootstrap --arch="$arch" --no-check-gpg --variant=minbase --include=sitesummary-client,linux-image-"$kernel_arch" \
+ debootstrap --arch="$arch" --no-check-gpg --variant=minbase --include=sitesummary-client,linux-image-"$kernel_arch" \
"$dist" /srv/ltsp/x2go-"$thin_type"-"$arch" "$mirror"
# Unset temporary directory variables to avoid problems when directory
# is missing inside the chroot. https://bugs.debian.org/765443
=====================================
share/debian-edu-config/tools/run-at-firstboot
=====================================
@@ -79,7 +79,7 @@ if ! is_ltsp_client; then
rm -Rf /srv/ltsp/dlw
fi
if [ ! -d /srv/ltsp/dlw ] || [ -n "$(find /srv/ltsp/dlw/ -name "SUCCESSFULLY_CREATED_*")" ]; then
- /usr/sbin/debian-edu-ltsp-install --dlw yes
+ env -i HOME="${HOME}" PATH="${PATH}" TERM="${TERM}" USER="${USER}" LOGNAME="${LOGNAME}" /usr/sbin/debian-edu-ltsp-install --dlw yes
fi
# else if this runs on a pure LTSP-Server (no Main-Server role), then
# let's use the file system of the LTSP-Server and generate the LTSP
@@ -87,7 +87,7 @@ if ! is_ltsp_client; then
elif echo "$PROFILE" | grep -Eqv 'Main-Server' && \
echo "$PROFILE" | grep -Eq 'LTSP-Server'; then
if [ ! -f /srv/ltsp/images/$ltspimg ] ; then
- /usr/sbin/debian-edu-ltsp-install --diskless_workstation yes
+ env -i HOME="${HOME}" PATH="${PATH}" TERM="${TERM}" USER="${USER}" LOGNAME="${LOGNAME}" /usr/sbin/debian-edu-ltsp-install --diskless_workstation yes
fi
fi
# Always create the thin client image for all LTSP-Server variants/combinations.
@@ -96,7 +96,7 @@ if ! is_ltsp_client; then
rm -Rf /srv/ltsp/x2go-bare-amd64/
fi
if [ ! -d /srv/ltsp/x2go-bare-amd64 ] || [ -n "$(find /srv/ltsp/x2go-bare-amd64/ -name "SUCCESSFULLY_CREATED_*")" ]; then
- /usr/sbin/debian-edu-ltsp-install --thin_type bare
+ env -i HOME="${HOME}" PATH="${PATH}" TERM="${TERM}" USER="${USER}" LOGNAME="${LOGNAME}" /usr/sbin/debian-edu-ltsp-install --thin_type bare
fi
fi
fi
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/compare/0b25f96372b622b2b2385f64e699ba24bb99f5f7...7423bdebff20b3fcf4a8f3b0df162065aec367ed
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/compare/0b25f96372b622b2b2385f64e699ba24bb99f5f7...7423bdebff20b3fcf4a8f3b0df162065aec367ed
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20261109/cf4661ef/attachment-0001.htm>
More information about the debian-edu-commits
mailing list