Browse Source

Fix anos and add linux config for 64 bits

master
Cyril CONSTANTIN 3 weeks ago
parent
commit
64afc2724e
  1. 9
      README.md
  2. 19
      build.sh
  3. 2
      build/84410_perl.sh
  4. 5409
      linux-config-x86_64.txt

9
README.md

@ -15,10 +15,17 @@ The */mnt/lfs* partition is not created by the script. @@ -15,10 +15,17 @@ The */mnt/lfs* partition is not created by the script.
You have to create it by yourself.
Some commands are provided by the script.
The lfs user is mandatory :
```bash
groupadd lfs
useradd -s /bin/bash -g lfs -m -k /dev/null lfs
passwd lfs
```
Some additionnal requirements :
* the *lfs* user is mandatory
* User creation is provided by the script
* The script should by executed by *lfs* user
* sudo command is necessary
* a sudoers file is provided for *lfs* user to restrict rights to stricts requirements.

19
build.sh

@ -38,7 +38,7 @@ export LFS=/mnt/lfs @@ -38,7 +38,7 @@ export LFS=/mnt/lfs
# shellcheck source=/dev/null
if [ ! -e /home/lfs/.lfsbuild_config ]
then
cat /home/lfs/.lfsbuild_config << EOSF
cat > /home/lfs/.lfsbuild_config << EOSF
# location of local package sources
LFS_PACKAGE_DIR=/home/lfs/packages
# Number of processors to use
@ -1133,12 +1133,13 @@ lfs_chroot() @@ -1133,12 +1133,13 @@ lfs_chroot()
sed "5ielse" -i "${CHROOTFILE}"
sed "\$afi" -i "${CHROOTFILE}"
if cat "${CHROOTFILE}" | sudo /usr/sbin/chroot "$LFS" /usr/bin/env -i \
HOME=/root \
TERM="$TERM" \
PS1='(lfs chroot) \u:\w\$ ' \
PATH=/usr/bin:/usr/sbin \
MAKEFLAGS="-j1" \
TESTSUITEFLAGS="-j1" \
HOME=/root \
TERM="$TERM" \
PS1='(lfs chroot) \u:\w\$ ' \
PATH=/usr/bin:/usr/sbin \
LFS_NPROC="${LFS_NPROC}" \
MAKEFLAGS="-j${LFS_NPROC}" \
TESTSUITEFLAGS="-j${LFS_NPROC}" \
/bin/bash
then
echo "command succeed"
@ -2367,7 +2368,7 @@ EOSF @@ -2367,7 +2368,7 @@ EOSF
echo "UUID seems bad"
exit 1
fi
uuidpartition=$(lsblk -o UUID,PARTUUID,PATH,MOUNTPOINT |grep /mnt/lfs$ |cut --delimiter=' ' --fields=2)
uuidpartition=$(lsblk -o UUID,PARTUUID,PATH,MOUNTPOINT |grep /mnt/lfs$ |sed -e "s/ */ /g" |cut --delimiter=' ' --fields=2)
if [[ ! "${uuidpartition}" =~ ^[a-z0-9-]+$ ]]
then
echo "PARTUUID seems bad"
@ -2384,7 +2385,7 @@ insmod part_gpt @@ -2384,7 +2385,7 @@ insmod part_gpt
insmod ext2
search --set=root --fs-uuid=${uuidfilesystem}
set gfxpayload=1024x768x32
menuentry "GNU/Linux, Linux ${linuxversion}-lfs-13.0-systemd" {
menuentry "GNU/Linux, Linux ${linuxversion}-lfs-13.0-systemd with blockdevice" {
linux /boot/vmlinuz-${linuxversion}-lfs-13.0-systemd root=${blockdevice} ro
}
EOF

2
build/84410_perl.sh

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
#!/usr/bin/env bash
echo "LFS_NPROC=${LFS_NPROC}"
export BUILD_ZLIB=False
export BUILD_BZIP2=0

5409
linux-config-x86_64.txt

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save