mirror of
https://github.com/krizsipeti/custom_blfs_packages.git
synced 2025-02-02 23:07:19 +08:00
Continue build with blfs part1
This commit is contained in:
parent
47301c241a
commit
a47cd3728b
17
lfsSetup.sh
17
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"
|
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
|
# Create autologin script to run blfs build after reboot
|
||||||
AUTOBUILDBLFS="$1/etc/systemd/system/autobuildblfs@.service"
|
DIR_AUTOLOGIN="$1/etc/systemd/system/getty@tty1.service.d"
|
||||||
sudo cp -v "$1/usr/lib/systemd/system/getty@.service" "$AUTOBUILDBLFS"
|
sudo mkdir -pv "$DIR_AUTOLOGIN"
|
||||||
sudo ln -sf "$AUTOBUILDBLFS" "$1/etc/systemd/system/getty.target.wants/getty@tty9.service"
|
printf "[Service]\nType=simple\nExecStart=\nExecStart=-/sbin/agetty --autologin pkr %%I 38400 linux\n" | sudo tee "$DIR_AUTOLOGIN/override.conf" > /dev/null
|
||||||
sudo sed -i "/^ExecStart=/c ExecStart=-/sbin/agetty -a pkr" "$AUTOBUILDBLFS"
|
|
||||||
|
|
||||||
cat > "$1/home/pkr/.profile" << EOF
|
cat > "$1/home/pkr/.profile" << EOF
|
||||||
if [ "$(tty)" == "/dev/tty9" ] ; then
|
#!/bin/bash
|
||||||
echo "Continue the build with blfs packages..."
|
cd "$HOME/blfs_root"
|
||||||
cd /home/pkr/blfs_root/work
|
. gen_pkg_book.sh <<< yes
|
||||||
fi
|
cd work
|
||||||
|
../gen-makefile.sh
|
||||||
|
make
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user