From a47cd3728bb6fadcff10b604b40f62916d0daa13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krizs=C3=A1n=20P=C3=A9ter?= Date: Thu, 21 Nov 2024 08:57:46 +0100 Subject: [PATCH] Continue build with blfs part1 --- lfsSetup.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lfsSetup.sh b/lfsSetup.sh index 9ce5e3e..366969e 100755 --- a/lfsSetup.sh +++ b/lfsSetup.sh @@ -296,14 +296,15 @@ sudo chown -hR pkr:pkr "$1/var/lib/jhalfs" sudo sed -i "s|/blfs_root/packdesc.dtd|/home/pkr/blfs_root/packdesc.dtd|g" "$1/var/lib/jhalfs/BLFS/instpkg.xml" # Create autologin script to run blfs build after reboot -AUTOBUILDBLFS="$1/etc/systemd/system/autobuildblfs@.service" -sudo cp -v "$1/usr/lib/systemd/system/getty@.service" "$AUTOBUILDBLFS" -sudo ln -sf "$AUTOBUILDBLFS" "$1/etc/systemd/system/getty.target.wants/getty@tty9.service" -sudo sed -i "/^ExecStart=/c ExecStart=-/sbin/agetty -a pkr" "$AUTOBUILDBLFS" +DIR_AUTOLOGIN="$1/etc/systemd/system/getty@tty1.service.d" +sudo mkdir -pv "$DIR_AUTOLOGIN" +printf "[Service]\nType=simple\nExecStart=\nExecStart=-/sbin/agetty --autologin pkr %%I 38400 linux\n" | sudo tee "$DIR_AUTOLOGIN/override.conf" > /dev/null cat > "$1/home/pkr/.profile" << EOF -if [ "$(tty)" == "/dev/tty9" ] ; then - echo "Continue the build with blfs packages..." - cd /home/pkr/blfs_root/work -fi +#!/bin/bash +cd "$HOME/blfs_root" +. gen_pkg_book.sh <<< yes +cd work +../gen-makefile.sh +make EOF