From 79ae9a6451b2f0907f60f3f4dec48cca596f8a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krizs=C3=A1n=20P=C3=A9ter?= Date: Tue, 5 Nov 2024 21:44:20 +0100 Subject: [PATCH] Fix missing username for usermod command --- lfsSetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfsSetup.sh b/lfsSetup.sh index 9f0307b..9b28a05 100755 --- a/lfsSetup.sh +++ b/lfsSetup.sh @@ -198,7 +198,7 @@ fi # Patch LFS kernel script to keep build folder and add new user KERNEL_SCRIPT=$(find "$DIR_COMMANDS" -type f -iname "*-kernel") sed -i "/^rm -rf \$PKGDIR/s/^/#/" "$KERNEL_SCRIPT" -sed -i "/^EOF$/a # Add new user\ngroupadd pkr\nuseradd -s /bin/bash -g pkr -m -k /dev/null pkr\nusermod -a -G audio,video,input,systemd-journal\npasswd -s pkr <<< pkr\npasswd -s root <<< root" "$KERNEL_SCRIPT" +sed -i "/^EOF$/a # Add new user\ngroupadd pkr\nuseradd -s /bin/bash -g pkr -m -k /dev/null pkr\nusermod -a -G audio,video,input,systemd-journal pkr\npasswd -s pkr <<< pkr\npasswd -s root <<< root" "$KERNEL_SCRIPT" # Check if wpa_supplicant is required and patch its install script if yes if [[ $2 == *"wpa_supplicant"* ]] ; then