mirror of
https://github.com/krglaws/MyLFS.git
synced 2025-08-10 03:12:53 +00:00
add files from 'The End'
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
FULLPATH=$(cd $(dirname $0) && pwd)
|
||||
|
||||
export LFS_VERSION=11.1
|
||||
export MAKEFLAGS=-j8
|
||||
export PACKAGE_LIST=$FULLPATH/pkgs.sh
|
||||
export PACKAGE_DIR=$FULLPATH/pkgs
|
||||
|
10
mylfs.sh
10
mylfs.sh
@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
LFS_VERSION=11.1
|
||||
|
||||
# #########
|
||||
# Functions
|
||||
@ -303,11 +302,12 @@ function init_image {
|
||||
|
||||
# install templates
|
||||
install_template ./templates/etc__hosts LFSHOSTNAME
|
||||
if $UEFI
|
||||
install_template ./templates/etc__lfs-release LFS_VERSION
|
||||
install_template ./templates/etc__lsb-release LFS_VERSION
|
||||
install_template ./templates/etc__os-release LFS_VERSION
|
||||
install_template ./templates/etc__fstab LFSROOTLABEL LFSEFILABEL LFSFSTYPE
|
||||
if ! $UEFI
|
||||
then
|
||||
install_template ./templates/etc__fstab LFSROOTLABEL LFSEFILABEL LFSFSTYPE
|
||||
else
|
||||
install_template ./templates/etc__fstab LFSROOTLABEL LFSFSTYPE
|
||||
sed -i "s/^.*LFSEFILABEL.*$//" $LFS/etc/fstab
|
||||
sed -i "s/^.*efivars.*$//" $LFS/etc/fstab
|
||||
fi
|
||||
|
1
templates/etc__lfs-release
Normal file
1
templates/etc__lfs-release
Normal file
@ -0,0 +1 @@
|
||||
LFS_VERSION
|
4
templates/etc__lsb-release
Normal file
4
templates/etc__lsb-release
Normal file
@ -0,0 +1,4 @@
|
||||
DISTRIB_ID="Linux From Scratch"
|
||||
DISTRIB_RELEASE=LFS_VERSION
|
||||
DISTRIB_CODENAME=lfs
|
||||
DISTRIB_DESCRIPTION="Linux From Scratch"
|
5
templates/etc__os-release
Normal file
5
templates/etc__os-release
Normal file
@ -0,0 +1,5 @@
|
||||
NAME="Linux From Scratch"
|
||||
VERSION=LFS_VERSION
|
||||
ID=lfs
|
||||
PRETTY_NAME="Linux From Scratch LFS_VERSION"
|
||||
VERSION_CODENAME=lfs
|
Reference in New Issue
Block a user