Ubuntu & Debian: Use variable for username

Signed-off-by: Scott G. Ainsworth <scott@ainsworth.us>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
[Applied to Ubuntu 20.04 Raspberry Pi & Debian Buster.]
This commit is contained in:
Scott G. Ainsworth
2021-10-12 21:34:59 -04:00
committed by Richard Laager
parent 4c3ec4c594
commit 3c04e929a1
3 changed files with 26 additions and 20 deletions

View File

@@ -881,14 +881,16 @@ Step 6: First Boot
#. Create a user account:
Replace ``username`` with your desired username::
Replace ``YOUR_USERNAME`` with your desired username::
zfs create rpool/home/username
adduser username
username=YOUR_USERNAME
cp -a /etc/skel/. /home/username
chown -R username:username /home/username
usermod -a -G audio,cdrom,dip,floppy,netdev,plugdev,sudo,video username
zfs create rpool/home/$username
adduser $username
cp -a /etc/skel/. /home/$username
chown -R $username:$username /home/$username
usermod -a -G audio,cdrom,dip,floppy,netdev,plugdev,sudo,video $username
#. Mirror GRUB