Skip to content

Commit e65db34

Browse files
committed
updated to 9.0
1 parent d4e5c3f commit e65db34

14 files changed

Lines changed: 41273 additions & 25 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ cdtree/LFS/LFSPkgBuilds
77
hostkeys
88
*.iso
99
workingfiles
10-
extenallinks
10+
extenallinks
11+
cdtree/LFS/*

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Updated for LFS9.0
2+
13
Changed addresses.
24
getSources script now checks md5sum of downloaded sources.
35
Get latest lfspkg build scripts from git hub repo.

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
VERSION=8.2
2+
VERSION=9.0
33
TOPDIR=$(shell pwd)
44
ISODEPS=$(shell find $(TOPDIR)/cdtree -not -name "\.*")
55
BOOTCDNAME=LFSBootCD-$(VERSION).iso
@@ -52,6 +52,7 @@ clean:
5252
rm -f $(TOPDIR)/$(BOOTCDNAME) $(TOPDIR)/cdtree/isolinux/sdisk32.img $(TOPDIR)/cdtree/isolinux/sdisk64.img
5353
rm -rf $(TOPDIR)/loop2
5454
rm -f $(TOPDIR)/wget-list*
55+
rm -f $(TOPDIR)/gotpkgbuilds
5556

5657
distclean:
5758
rm -f $(TOPDIR)/$(BOOTCDNAME) $(TOPDIR)/cdtree/isolinux/sdisk32.img $(TOPDIR)/cdtree/isolinux/sdisk64.img $(TOPDIR)/tftp_area.tar.gz||true
@@ -61,3 +62,12 @@ distclean:
6162
rm $(TOPDIR)/root_tree32.tar.xz $(TOPDIR)/root_tree64.tar.xz||true
6263
rm $(TOPDIR)/bootcd.tar.xz||true
6364

65+
nearlyclean:
66+
rm -f $(TOPDIR)/$(BOOTCDNAME) $(TOPDIR)/cdtree/isolinux/sdisk32.img $(TOPDIR)/cdtree/isolinux/sdisk64.img
67+
rm -rf $(TOPDIR)/cdtree/LFS/LFSPkgBuilds
68+
rm -rf $(TOPDIR)/cdtree/LFS/gotpkgbuilds
69+
70+
71+
72+
73+

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ https://git-lfs.github.com/
66
All commands marked with * MUST be run as root to preserve permissions ( don't type the *! ).
77

88
*make clean
9+
Doesn't remove source archives.
10+
* make nearlyclean
911

1012
OR to remove the ssh keys folder
1113
*make distclean
1214

1315
Grab external sources etc, this may take some time if you have a slow connection approx download 825M, this includes all the sources to build a functioning LFS system
14-
*make SOURCES
16+
make SOURCES
1517

1618
*make CD
1719

cdtree/isolinux/isolinux.bin

0 Bytes
Binary file not shown.

getSources

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,34 @@
22

33
#©keithhedger Wed 14 Jun 19:51:12 BST 2017 kdhedger68713@gmail.com
44

5-
LFSVERSION="8.2"
5+
LFSVERSION="9.0"
6+
#LFSGITVERSION="$LFSVERSION"
7+
LFSGITVERSION="dev"
8+
69
SYSTEMSOURCE=cdtree/LFS/LFSSourceArchives/$LFSVERSION/SYSTEM
710
NETSOURCE=cdtree/LFS/LFSSourceArchives/$LFSVERSION/NET
811
SYSSOURCE=cdtree/LFS/LFSSourceArchives/$LFSVERSION/SYS
12+
WGET_VERS=1.20.3
913

10-
WGETTAR="http://ftp.gnu.org/gnu/wget/wget-1.19.4.tar.gz"
14+
WGETTAR="https://ftp.gnu.org/gnu/wget/wget-$WGET_VERS.tar.gz"
1115
UNZIPTAR="http://downloads.sourceforge.net/infozip/unzip60.tar.gz"
1216

1317
#TOOLS32TAR="https://www.dropbox.com/s/00d9g99v1h7yzpn/tools-8.0_32.tar.bz2"
1418
#TOOLS64TAR="https://www.dropbox.com/s/m8spbezuuc1e9q2/tools-8.0_64.tar.bz2"
15-
TOOLS32TAR="https://www.dropbox.com/s/a7keub18zn90esl/tools-8.2_32.tar.bz2"
16-
TOOLS64TAR="https://www.dropbox.com/s/wtis8ag8nwz1nzy/tools-8.2_64.tar.bz2"
19+
#TOOLS32TAR="https://www.dropbox.com/s/a7keub18zn90esl/tools-8.2_32.tar.bz2"
20+
#TOOLS64TAR="https://www.dropbox.com/s/wtis8ag8nwz1nzy/tools-8.2_64.tar.bz2"
21+
TOOLS32TAR="https://www.dropbox.com/s/dlmmd5us8bn86zt/tools-9.0_32.tar.bz2"
22+
TOOLS64TAR="https://www.dropbox.com/s/l2uer2qfy7czh9j/tools-9.0_64.tar.bz2"
1723
ROOT32TAR="https://www.dropbox.com/s/ktxt3pwljmki6ns/root_tree32.tar.xz"
1824
ROOT64TAR="https://www.dropbox.com/s/wqxswj35gvrqqfv/root_tree64.tar.xz"
1925

20-
LFSPKGBUILDS="https://github.com/KeithDHedger/LFSPkgBuilds/archive/${LFSVERSION}.zip"
26+
LFSPKGBUILDS="https://github.com/KeithDHedger/LFSPkgBuilds/archive/${LFSGITVERSION}.zip"
2127
LFSPKG="https://github.com/KeithDHedger/LFSPkg/archive/master.zip"
2228

2329
mkdir -vp cdtree/LFS $NETSOURCE $SYSSOURCE $SYSTEMSOURCE||true
2430

2531
if [ ! -e $SYSTEMSOURCE/gotsystemsources ];then
2632
wget http://www.linuxfromscratch.org/lfs/view/$LFSVERSION/wget-list
27-
#bzip2 link broken in wget-list
28-
sed -i 's@.*bzip2-1\.0\.6\.tar\.gz*@http://anduin.linuxfromscratch.org/LFS/bzip2-1.0.6.tar.gz@' wget-list
2933
wget http://www.linuxfromscratch.org/lfs/view/$LFSVERSION/md5sums
3034
mv md5sums $SYSTEMSOURCE
3135
wget -i wget-list -c -P $SYSTEMSOURCE
@@ -55,9 +59,9 @@ fi
5559
if [ ! -e cdtree/LFS/gotpkgbuilds ];then
5660
pushd cdtree/LFS
5761
wget -c "$LFSPKGBUILDS"
58-
unzip ${LFSVERSION}.zip
59-
mv LFSPkgBuilds-${LFSVERSION} LFSPkgBuilds
60-
rm -r LFSPkgBuilds/.gitignore ${LFSVERSION}.zip
62+
unzip ${LFSGITVERSION}.zip
63+
mv LFSPkgBuilds-${LFSGITVERSION} LFSPkgBuilds
64+
rm -r LFSPkgBuilds/.gitignore ${LFSGITVERSION}.zip
6165
cp -r ../../LFSScripts/BuildFileSystem LFSPkgBuilds/LFSScripts
6266
pushd LFSPkgBuilds/LFSPkgBuildScripts/admin/LFSPkg
6367
wget -c $LFSPKG

xtrasanyarch/usr/bin/LFSSetUp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ readWithDefault ()
3535
case $(uname -m) in
3636
x86_64)
3737
LIBDIRSUFFIX=64
38+
LFSNAME=${LFSNAME:-"LFS9064"}
3839
;;
3940
*)
4041
LIBDIRSUFFIX=""
42+
LFSNAME=${LFSNAME:-"LFS9032"}
4143
;;
4244
esac
4345

@@ -53,11 +55,11 @@ LFS=${LFS:-"/mnt/LFS"}
5355
readWithDefault "LFS" "Enter Mountpoint For LFS"
5456

5557
#LFS Version
56-
LFSVERSION=${LFSVERSION:-8.2}
58+
LFSVERSION=${LFSVERSION:-9.0}
5759
readWithDefault "LFSVERSION" "Enter Version"
5860

5961
#Computer name
60-
LFSNAME=${LFSNAME:-"LFSDev"}
62+
#LFSNAME=${LFSNAME:-"LFS9064"}
6163
readWithDefault "LFSNAME" "Enter Hostname"
6264

6365
#LFS init type eithe bbinit or sysvinit
@@ -81,7 +83,7 @@ readWithDefault "SOURCEARCHIVES" "Enter Folder For Source Archives"
8183

8284
#kernal version
8385
#if the kernel version you want to use is not the same as the book you will have to manually download the source to $SOURCEARCHIVES
84-
KERNELVERSION=${KERNELVERSION:-"4.15.3"}
86+
KERNELVERSION=${KERNELVERSION:-"5.2.8"}
8587
readWithDefault "KERNELVERSION" "Enter Kernel Version"
8688

8789
#keyboard
@@ -158,7 +160,7 @@ cp -r ${CDROMMOUNT}/LFS/LFSPkgBuilds ${LFS}
158160
ln -sfv LFSPkgBuilds/LFSPkgBuildScripts .
159161
ln -sfv LFSPkgBuilds/LFSScripts .
160162

161-
mkdir ${LFS}/tools
163+
mkdir -p ${LFS}/tools
162164
pushd ${LFS}/tools
163165
case $(uname -m) in
164166
*64)
@@ -174,10 +176,8 @@ mkdir -vp "${LFS}/$SOURCEARCHIVES" "${LFS}/$BUILTPACKAGES"
174176
cp -rv ${CDROMMOUNT}/LFS/LFSSourceArchives/${LFSVERSION}/* ${LFS}/$SOURCEARCHIVES
175177

176178
#set kernel version in build scripts
177-
#build scripts should be at $LFS/LFSPkgBuildScripts
178-
sed -ri 's/^VERSION="[0-9]+.[0-9]+.[0-9]+"/VERSION="'"${KERNELVERSION}"'"/' ${LFS}/${BUILDSCRIPTS}/system/linuxheaders/linuxheaders.LFSBuild
179179
sed -ri 's/^VERSION="[0-9]+.[0-9]+.[0-9]+"/VERSION="'"${KERNELVERSION}"'"/' ${LFS}/${BUILDSCRIPTS}/kernel/kernel.LFSBuild
180-
sed -ri "s/linuxheaders-[0-9]+.[0-9]+.[0-9]+/linuxheaders-${KERNELVERSION}/i" ${LFS}/${BUILDSCRIPTS}/system/system-meta/system-${INITTYPE}-meta.LFSBuild
180+
sed -ri 's/^VERSION="[0-9]+.[0-9]+.[0-9]+"/VERSION="'"${KERNELVERSION}"'"/' ${LFS}/${BUILDSCRIPTS}/kernel/firmware.LFSBuild
181181

182182
ln -svf system-${INITTYPE}-meta.LFSBuild ${LFS}/${BUILDSCRIPTS}/system/system-meta/system-meta.LFSBuild
183183

0 commit comments

Comments
 (0)