update to bullseye
[automated-distro-installer] / fai / config / distro-install-common / end
index e764c32ea67367e21a887e518926694071f999d3..0204ce50025bd3312267c7bed58c2382c17413a2 100755 (executable)
@@ -41,15 +41,16 @@ chpw() {
   fi
 }
 au() { # add user. i don't use adduser for portability
-  if ! $ROOTCMD getent passwd ${@: -1}; then
-    $ROOTCMD useradd -Um -s /bin/bash $@
+  local user=${@: -1}
+  if ! $ROOTCMD getent passwd $user; then
+    $ROOTCMD useradd -c $user -Um -s /bin/bash $@
   fi
 }
 
 chpw root "$ROOTPW"
 
 # only setup root pass for bootstrap vol
-if ifclass VOL_STRETCH_BOOTSTRAP; then
+if ifclass VOL_BULLSEYE_BOOTSTRAP; then
   exit 0
 fi