mirror of
https://github.com/krizsipeti/custom_blfs_packages.git
synced 2025-01-23 14:32:21 +08:00
Remove autologin and blfs build profile after build
This commit is contained in:
parent
eb4c34f6ef
commit
94a955c10e
@ -302,18 +302,21 @@ printf "[Service]\nType=simple\nExecStart=\nExecStart=-/sbin/agetty --autologin
|
|||||||
|
|
||||||
cat > "$1/home/pkr/.profile" << EOF
|
cat > "$1/home/pkr/.profile" << EOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$HOME/blfs_root/blfs-xml"
|
cd "/home/pkr/blfs_root/blfs-xml"
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git clean -xfd
|
git clean -xfd
|
||||||
cd "$HOME/blfs_root/lfs-xml"
|
cd "/home/pkr/blfs_root/lfs-xml"
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git clean -xfd
|
git clean -xfd
|
||||||
cd "$HOME/blfs_root"
|
cd "/home/pkr/blfs_root"
|
||||||
make update
|
make update
|
||||||
. gen_pkg_book.sh <<< yes
|
. gen_pkg_book.sh <<< yes
|
||||||
cd work
|
cd work
|
||||||
../gen-makefile.sh
|
../gen-makefile.sh
|
||||||
make
|
make
|
||||||
|
sudo rm -rfv /etc/systemd/system/getty@tty1.service.d
|
||||||
|
rm -fv /home/pkr/.profile
|
||||||
|
sudo systemctl poweroff
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Create new blfs config
|
# Create new blfs config
|
||||||
|
Loading…
Reference in New Issue
Block a user