From 7d83ec6dbc937457fd1cc61d7acbdd643240f69e Mon Sep 17 00:00:00 2001 From: Mark Verlinde Date: Tue, 29 Jun 2021 22:10:47 +0200 Subject: [PATCH] Refactor default user creation - FIXME: why does the kickstart fail to create a user with appliance-tools? --- Rocky8_Rpi4.ks | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Rocky8_Rpi4.ks b/Rocky8_Rpi4.ks index 6078684..2528c42 100644 --- a/Rocky8_Rpi4.ks +++ b/Rocky8_Rpi4.ks @@ -25,7 +25,8 @@ repo --name="Rpi-Kernel" --baseurl=https://rocky.lowend.ninja/RockyRpi/Rpi-Kerne install keyboard us --xlayouts=us --vckeymap=us rootpw --lock -user --name="rocky" --password="rockylinux" --plaintext --gecos="Rocky default user" --groups=wheel --uid=1000 +# FIXME user creation here does not work ? +# user --name="rocky" --password="rockylinux" --plaintext --gecos="Rocky default user" --groups=wheel --uid=1000 timezone --isUtc --nontp UTC selinux --enforcing firewall --enabled --port=22:tcp @@ -66,12 +67,10 @@ EOF # Run this once to fix the wifi: sed -i 's/boardflags3=0x48200100/boardflags3=0x44200100/g' /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt -# Apparently kickstart user was not working, attempt to do it here? -/sbin/useradd -c "Rocky Linux default user" -u 1000 -G wheel -m -U rocky -echo "rockylinux" | passwd --stdin rocky -mkdir -p /home/rocky -chown 1000:1000 /home/rocky +# Apparently kickstart user was not working, attempt to do it here? +/sbin/useradd -c "Rocky Linux default user" -G wheel -m -U rocky +echo "rockylinux" | passwd --stdin rocky # Need to write several files to help with various things here. @@ -105,7 +104,7 @@ It should fill your main rootfs partition to the end of the disk. EOF -chown 1000 /home/rocky/README +chown -R rocky:rocky /home/rocky # Add rpi-kernel repo: