Moved blfs config creation

This commit is contained in:
Krizsan Peter 2024-12-04 08:51:37 +01:00
parent 7251dd4385
commit 401cce1a1d
2 changed files with 2 additions and 5 deletions

View File

@ -17,9 +17,6 @@ _build_blfs()
local dir_lfs="$(realpath "$1")"
_setup_autologin "$dir_lfs" || return 1
# Create new blfs config
_create_blfs_config "$dir_lfs" || return 1
# Create autologin script to run blfs build after reboot
_create_blfs_builder_script "$dir_lfs" || return 1

View File

@ -144,7 +144,6 @@ _finalize_lfs_build()
# Move blfs folder to pkr home folder
sudo mv -v "$dir_lfs/blfs_root" "$dir_lfs/home/pkr/" &&
sudo chroot "$dir_lfs" sed -i -E "/(=configuration|python3)/s/^/#/g;/=configuration/i\ source /home/pkr/custom_blfs_packages/libs/func_general.sh && _create_blfs_config_xorg /" /home/pkr/blfs_root/Makefile &&
sudo chroot "$dir_lfs" chown -hR pkr:pkr "/home/pkr/blfs_root" &&
sudo chroot "$dir_lfs" chown -hR pkr:pkr "/var/lib/jhalfs" &&
sudo sed -i "s|/blfs_root/packdesc.dtd|/home/pkr/blfs_root/packdesc.dtd|g" "$dir_lfs/var/lib/jhalfs/BLFS/instpkg.xml"
@ -351,6 +350,7 @@ _build_blfs()
cd "$dir_blfs_root"
make clean &&
make update &&
sed -i -E "/(=configuration|python3)/s/^/#/g;/=configuration/i\ source /home/pkr/custom_blfs_packages/libs/func_general.sh && _create_blfs_config_xorg /" "$dir_blfs_root/Makefile" &&
make <<< yes &&
cd "$dir_blfs_work" &&
../gen-makefile.sh &&