Bug#1055648: debian-edu-config: once trixie development started, remove cruft from pre-pkgsel

Holger Levsen <[email protected]>
Newsgroups gmane.linux.skolelinux.devel
Message-ID <ZU0KYWL3H4224Idr__8185.33956059895$1699547994$gmane$org@layer-acht.org>
Package: debian-edu-config
Version: 2.13.x
Severity: wishlist

Dear Maintainer,

the attached patch should be applied once trixie development for Debian Edu has
started.


-- 
cheers,
	Holger

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁  holger@(debian|reproducible-builds|layer-acht).org
 ⢿⡄⠘⠷⠚⠋⠀  OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
 ⠈⠳⣄

Cholera is over. It's safe to put sewage in our drinking water again.
(@stimmyskye)
0002-cleanup-pre-pkgsel-from-cruft.patch (text/x-diff, 2.3 KB)
From 7f048da3c15ee93d446bc33a716cf3d7a33a96dd Mon Sep 17 00:00:00 2001
From: Wolfgang Schweer <[email protected]>
Date: Tue, 7 Nov 2023 09:51:40 +0100
Subject: [PATCH 2/2] cleanup pre-pkgsel from cruft

---
 share/debian-edu-config/d-i/pre-pkgsel | 32 --------------------------
 1 file changed, 32 deletions(-)

diff --git a/share/debian-edu-config/d-i/pre-pkgsel b/share/debian-edu-config/d-i/pre-pkgsel
index 295b6528..7492687f 100644
--- a/share/debian-edu-config/d-i/pre-pkgsel
+++ b/share/debian-edu-config/d-i/pre-pkgsel
@@ -266,37 +266,6 @@ EOF
     fi
 }
 
-create_initial_localadmin_user() {
-    LOCAL_USER_ID="localadmin"
-    LOCAL_USER_GECOS="Local Administrator"
-    LOCAL_USER_UIDNUMBER="1000"
-    LOCAL_USER_PRIMGIDNUMBER="1000"
-
-    LOCAL_USER_INGROUPS="$LOCAL_USER_INGROUPS adm sudo"
-
-    if db_get passwd/root-password-crypted && [ "$RET" ] ; then
-	log "No clear text root password, unable to use it for creating the initial local user"
-    else
-	# retrieve root password
-	db_get passwd/root-password
-	LOCAL_USER_PASSWD=$RET
-	# create initial local user
-	in-target /usr/sbin/addgroup --gid $LOCAL_USER_PRIMGIDNUMBER $LOCAL_USER_ID 1>&2 || true
-	in-target /usr/sbin/adduser --gid $LOCAL_USER_PRIMGIDNUMBER \
-		--firstuid $LOCAL_USER_UIDNUMBER \
-		--home /home/$LOCAL_USER_ID \
-		--shell /bin/bash \
-		--disabled-login \
-		--gecos "$LOCAL_USER_GECOS" $LOCAL_USER_ID 1>&2 || true
-	# add initial local user to some standard system groups
-	for group in ${LOCAL_USER_INGROUPS}; do
-		in-target /usr/sbin/adduser $LOCAL_USER_ID $group 1>&2 || true
-	done
-	# set password (batch mode)
-	in-target /bin/sh -c "echo ${LOCAL_USER_ID}:${LOCAL_USER_PASSWD} | /usr/sbin/chpasswd" 1>&2 || true
-    fi
-}
-
 # Work around grub bug #712907 (see also bug #763580) by preseeding
 # grub-installer/choose_device to the disk used by /target/boot
 # This fix it for the most common case.
@@ -348,7 +317,6 @@ for p in $(echo $PROFILE | tr , " ") ; do
     case $p in
 	# Only do this for the networked tasks, not for standalone
 	Main-Server|Workstation|Roaming-Workstation|LTSP-Server|Minimal)
-	    #create_initial_localadmin_user
 	    in-target /usr/share/debian-edu-config/tools/preseed-ldap-kerberos
 	    in-target /usr/share/debian-edu-config/tools/preseed-sitesummary
 
-- 
2.42.0
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEuL9UE3sJ01zwJv6dCRq4VgaaqhwFAmVNCmAACgkQCRq4Vgaa
qhz9/hAApq2Ki/fMbZEsvD58/YmQUZqqIkTZU9rIaM+iuYDycTzKJWIc7pgZrwss
pa37jXBoP7tlC5ZZSHwm+hxdiFn3HC9Ia4rHu4kpWYsJ0fFKqAXOjLm2JD/Gw3EX
g/OqU50F6upjFfW8AnOuIuXXgSPOz5HQ1TS0Eefqo1lVDsLMtHeFp+L3KotStC45
gItPgTvbxLSlnXgAx93ctK5nK3+shw6JNAArhWKOnGUjYlnlxqX81NlXKNDGn0Hc
v/H5yKyekmH4sgB3yrVqBHQdwRqWZfsT5Zz7uT6zo38iKWO5OO3dyAwwZfY44rFj
dEr+/LvApn+CR8oCzrfTvoUVVQ5e5/+kByTxrT50ydW5rFRLBSs0L2JVJTQQEYuX
Cb7wQ4tyxtsSDaohvoUAUTpUTBQSX4yqmnlUIRH63amFu35ZUSCqYZM/exH1lVZP
KUYMrLCkENPcDzZb7Ty18Gf2QM2ByEBxDleSTWjFTQU3OHVUv67TM5leZ33XqlU1
0bl7xjD5SWARsV2dFR8iF+0i/RWM3MqZ2Qb6Jt6d6emS4gLpB/AdhwfFpTyV8T03
CmVkyecBHSbP/2RhNGmXMfT98XpIm11NdC0pBDQPGTrSojrUH6VAgpphUeSjdJtL
vkEJL4Q7kSjpwwo35GOjYyhjx/XCVCcIO8hI61u5ZzzkcRn5i2c=
=ni4E
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.