X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fdistro-install-common%2Fend;h=b0e070048e4df3ce7b6a44085a19bb23e88d0e5a;hb=739efea3642e2f8a7a672c4600da152a27bedf1a;hp=e764c32ea67367e21a887e518926694071f999d3;hpb=cef9b6ede5c1e028bed1b4dc7895f5dfa121ad6b;p=automated-distro-installer diff --git a/fai/config/distro-install-common/end b/fai/config/distro-install-common/end index e764c32..b0e0700 100755 --- a/fai/config/distro-install-common/end +++ b/fai/config/distro-install-common/end @@ -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_BUSTER_BOOTSTRAP; then exit 0 fi