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.
You have to create it by yourself. You have to create it by yourself.
Some commands are provided by the script. 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 : Some additionnal requirements :
* the *lfs* user is mandatory * the *lfs* user is mandatory
* User creation is provided by the script
* The script should by executed by *lfs* user * The script should by executed by *lfs* user
* sudo command is necessary * sudo command is necessary
* a sudoers file is provided for *lfs* user to restrict rights to stricts requirements. * 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
# shellcheck source=/dev/null # shellcheck source=/dev/null
if [ ! -e /home/lfs/.lfsbuild_config ] if [ ! -e /home/lfs/.lfsbuild_config ]
then then
cat /home/lfs/.lfsbuild_config << EOSF cat > /home/lfs/.lfsbuild_config << EOSF
# location of local package sources # location of local package sources
LFS_PACKAGE_DIR=/home/lfs/packages LFS_PACKAGE_DIR=/home/lfs/packages
# Number of processors to use # Number of processors to use
@ -1133,12 +1133,13 @@ lfs_chroot()
sed "5ielse" -i "${CHROOTFILE}" sed "5ielse" -i "${CHROOTFILE}"
sed "\$afi" -i "${CHROOTFILE}" sed "\$afi" -i "${CHROOTFILE}"
if cat "${CHROOTFILE}" | sudo /usr/sbin/chroot "$LFS" /usr/bin/env -i \ if cat "${CHROOTFILE}" | sudo /usr/sbin/chroot "$LFS" /usr/bin/env -i \
HOME=/root \ HOME=/root \
TERM="$TERM" \ TERM="$TERM" \
PS1='(lfs chroot) \u:\w\$ ' \ PS1='(lfs chroot) \u:\w\$ ' \
PATH=/usr/bin:/usr/sbin \ PATH=/usr/bin:/usr/sbin \
MAKEFLAGS="-j1" \ LFS_NPROC="${LFS_NPROC}" \
TESTSUITEFLAGS="-j1" \ MAKEFLAGS="-j${LFS_NPROC}" \
TESTSUITEFLAGS="-j${LFS_NPROC}" \
/bin/bash /bin/bash
then then
echo "command succeed" echo "command succeed"
@ -2367,7 +2368,7 @@ EOSF
echo "UUID seems bad" echo "UUID seems bad"
exit 1 exit 1
fi 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-]+$ ]] if [[ ! "${uuidpartition}" =~ ^[a-z0-9-]+$ ]]
then then
echo "PARTUUID seems bad" echo "PARTUUID seems bad"
@ -2384,7 +2385,7 @@ insmod part_gpt
insmod ext2 insmod ext2
search --set=root --fs-uuid=${uuidfilesystem} search --set=root --fs-uuid=${uuidfilesystem}
set gfxpayload=1024x768x32 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 linux /boot/vmlinuz-${linuxversion}-lfs-13.0-systemd root=${blockdevice} ro
} }
EOF EOF

2
build/84410_perl.sh

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

5409
linux-config-x86_64.txt

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