From 94a955c10ece471bd2ca2f110bb07a9de2986ef6 Mon Sep 17 00:00:00 2001 From: pkr Date: Thu, 21 Nov 2024 16:05:39 +0100 Subject: [PATCH] Remove autologin and blfs build profile after build --- lfsSetup.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lfsSetup.sh b/lfsSetup.sh index 5ac8280..9bda6d2 100755 --- a/lfsSetup.sh +++ b/lfsSetup.sh @@ -302,18 +302,21 @@ printf "[Service]\nType=simple\nExecStart=\nExecStart=-/sbin/agetty --autologin cat > "$1/home/pkr/.profile" << EOF #!/bin/bash -cd "$HOME/blfs_root/blfs-xml" +cd "/home/pkr/blfs_root/blfs-xml" git reset --hard git clean -xfd -cd "$HOME/blfs_root/lfs-xml" +cd "/home/pkr/blfs_root/lfs-xml" git reset --hard git clean -xfd -cd "$HOME/blfs_root" +cd "/home/pkr/blfs_root" make update . gen_pkg_book.sh <<< yes cd work ../gen-makefile.sh make +sudo rm -rfv /etc/systemd/system/getty@tty1.service.d +rm -fv /home/pkr/.profile +sudo systemctl poweroff EOF # Create new blfs config