[debian-edu-commits] [Git][debian-edu/debian-edu-config][personal/sunweaver/fix-edu-profile-of-dlws] sbin/debian-edu-ltsp-install: When creating a DLW, set PROFILE to 'Workstation' (Closes: #1092123).
Mike Gabriel (@sunweaver)
gitlab at salsa.debian.org
Fri Sep 4 16:28:32 BST 2026
Mike Gabriel pushed to branch personal/sunweaver/fix-edu-profile-of-dlws at Debian Edu / debian-edu-config
Commits:
ef8afaca by Mike Gabriel at 2026-09-04T17:28:11+02:00
sbin/debian-edu-ltsp-install: When creating a DLW, set PROFILE to 'Workstation' (Closes: #1092123).
- - - - -
1 changed file:
- sbin/debian-edu-ltsp-install
Changes:
=====================================
sbin/debian-edu-ltsp-install
=====================================
@@ -607,11 +607,15 @@ EOF
rm -f /etc/resolv.conf
echo "nameserver $dns_server" > /etc/resolv.conf
echo "search intern" >> /etc/resolv.conf
+ # Temporary workaround needed to turn DLW images into machines of profile type 'Workstation'
+ sed -i /etc/debian-edu/config -e "s/^PROFILE=.*/PROFILE=\"Workstation\"/g"
# Create SqashFS image.
ltsp image /,,/boot,subdir=boot,,/usr,subdir=usr,,/var,subdir=var
# Revert resolver workaround from above.
rm -f /etc/resolv.conf
ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
+ # Revert temporary change to PROFILE in /etc/debian-edu/config
+ sed -i /etc/debian-edu/config -e "s/^PROFILE=.*/PROFILE=\"${PROFILE}\"/g"
# next modification avoids ltsp command error if lot of images are available.
ALL_IMAGES=1 ltsp kernel
ltsp initrd
@@ -675,7 +679,7 @@ EOF
chroot /srv/ltsp/dlw apt-get install -y -qq apt-utils ltsp
# Turn system into a Debian Edu workstation.
- chroot /srv/ltsp/dlw sh -c "DESKTOP=$desktop /sbin/debian-edu-bless"
+ chroot /srv/ltsp/dlw sh -c "PROFILE=Workstation DESKTOP=$desktop /sbin/debian-edu-bless"
mkdir -p /srv/ltsp/dlw/skole
chmod 755 /srv/ltsp/dlw/skole
rm -f /srv/ltsp/dlw/etc/resolv.conf
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/ef8afacad07e0ed8f35b2e1614660348bbe1389c
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/ef8afacad07e0ed8f35b2e1614660348bbe1389c
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/20260904/a44f7b75/attachment-0001.htm>
More information about the debian-edu-commits
mailing list