mirror of
https://github.com/krizsipeti/custom_blfs_packages.git
synced 2025-01-23 14:32:21 +08:00
Remove blfs build script and applied quotes to paths
This commit is contained in:
parent
cdc296644b
commit
4372d3cc01
@ -23,7 +23,7 @@ _build_lfs()
|
|||||||
_create_folders_and_get_sources "$dir_lfs" || return 1
|
_create_folders_and_get_sources "$dir_lfs" || return 1
|
||||||
|
|
||||||
# Patch the LFS book's packages.ent with latest kernel
|
# Patch the LFS book's packages.ent with latest kernel
|
||||||
_update_lfs_with_latest_kernel $dir_lfs || return 1
|
_update_lfs_with_latest_kernel "$dir_lfs" || return 1
|
||||||
|
|
||||||
# Check for the kernel config and try to create it based on a previous one if not found
|
# Check for the kernel config and try to create it based on a previous one if not found
|
||||||
_create_kernel_config_if_needed "$dir_lfs" || return 1
|
_create_kernel_config_if_needed "$dir_lfs" || return 1
|
||||||
@ -43,7 +43,7 @@ _build_lfs()
|
|||||||
_patch_network_scripts "$dir_lfs" "$2" || return 1
|
_patch_network_scripts "$dir_lfs" "$2" || return 1
|
||||||
|
|
||||||
# Patch fstab script
|
# Patch fstab script
|
||||||
_patch_fstab $dir_lfs || return 1
|
_patch_fstab "$dir_lfs" || return 1
|
||||||
|
|
||||||
# Patch LFS kernel script to keep build folder and add new user
|
# Patch LFS kernel script to keep build folder and add new user
|
||||||
_patch_kernel_script "$dir_lfs" || return 1
|
_patch_kernel_script "$dir_lfs" || return 1
|
||||||
|
@ -253,6 +253,7 @@ _build_blfs()
|
|||||||
{(
|
{(
|
||||||
if ! [ "$USER" == "pkr" ] ; then return 0; fi
|
if ! [ "$USER" == "pkr" ] ; then return 0; fi
|
||||||
sudo rm -rfv /etc/systemd/system/getty@tty1.service.d
|
sudo rm -rfv /etc/systemd/system/getty@tty1.service.d
|
||||||
|
sudo rm -fv /etc/profile.d/x_build_blfs.sh
|
||||||
echo "Wait 15 seconds before start to have network ready ..."
|
echo "Wait 15 seconds before start to have network ready ..."
|
||||||
sleep 15
|
sleep 15
|
||||||
local dir_home="/home/pkr"
|
local dir_home="/home/pkr"
|
||||||
|
Loading…
Reference in New Issue
Block a user