Everest Linux 1.0.0-rc - Testing installer

This commit is contained in:
lw-everestlinux 2022-08-25 22:45:30 -04:00
parent de17b95791
commit 12a5002823
5 changed files with 112 additions and 1 deletions

View File

@ -292,3 +292,6 @@ printf " /etc/hosts\n"
EOF
cp default.script ${EVEREST}/targetfs/usr/share/udhcpc/default.script
chmod +x ${EVEREST}/targetfs/usr/share/udhcpc/default.script
printf "[ i ] The stage 3 installation script has finished. You may now run the optional stage 4 script, or run the stage 5 script, which will finalize the installation.\n"
exit 0

77
scripts/build-4.sh Executable file
View File

@ -0,0 +1,77 @@
#!/bin/sh
# Everest Linux 1.0.0-busybox - Stage 4 Installation Script
# This program is free software: See the GNU GPL v3.0 for details
printf "[ i ] Starting stage 4 installation...\n"
sleep 2
printf "[ i ] Downloading necessary packages...\n"
mkdir ${EVEREST}/tempfiles
cd ${EVEREST}/tempfiles
export EVEREST_DOWNLOAD="wget --quiet --show-progress"
$EVEREST_DOWNLOAD http://www.red-bean.com/~bos/netplug/netplug-1.2.9.2.tar.bz2
$EVEREST_DOWNLOAD http://matt.ucc.asn.au/dropbear/releases/dropbear-2013.60.tar.bz2
$EVEREST_DOWNLOAD http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz
$EVEREST_DOWNLOAD http://downloads.sourceforge.net/libpng/zlib-1.2.8.tar.gz
printf "[ i ] Downloading necessary patches...\n"
$EVEREST_DOWNLOAD http://patches.clfs.org/embedded-dev/netplug-1.2.9.2-fixes-1.patch
mv * ${EVEREST}/sources
cd ${EVEREST}/sources
printf "[ i ] Starting build of >>> Zlib-1.2.8 <<<\n"
tar -xvf zlib-1.2.8.tar.gz
cd zlib-1.2.8
CFLAGS="-Os" ./configure --shared
make
make prefix=${EVEREST}/cross-tools/${EVEREST_TARGET} install
cp -v ${EVEREST}/cross-tools/${EVEREST_TARGET}/lib/libz.so.1.2.8 ${EVEREST}/targetfs/lib/
ln -sv libz.so.1.2.8 ${EVEREST}/targetfs/lib/libz.so.1
cd ..
printf "[ i ] Finished build of >>> Zlib-1.2.8 <<<\n"
sleep 3
printf "[ i ] Starting build of >>> Netplug-1.2.9.2 <<<\n"
tar -xvf netplug-1.2.9.2.tar.bz2
cd netplug-1.2.9.2
patch -Np1 -i ../netplug-1.2.9.2-fixes-1.patch
make
make DESTDIR=${EVEREST}/targetfs install
cd ${EVEREST}/sources/bootscripts-embedded-master
make install-netplug DESTDIR=${EVEREST}/targetfs
cd ${EVEREST}/sources
printf "[ i ] Finished build of >>> Netplug-1.2.9.2 <<<\n"
sleep 3
printf "[ i ] Starting build of >>> Dropbear-2013.60 <<<\n"
tar -xvf dropbear-2013.60.tar.bz2
cd dropbear-2013.60
sed -i 's/.*mandir.*//g' Makefile.in
CC="${CC} -Os" ./configure --prefix=/usr --host=${EVEREST_TARGET}
make MULTI=1 \
PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"
make MULTI=1 \
PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" \
install DESTDIR=${EVEREST}/targetfs
install -dv ${EVEREST}/targetfs/etc/dropbear
cd ${EVEREST}/sources/bootscripts-embedded-master
make install-dropbear DESTDIR=${EVEREST}/targetfs
cd ${EVEREST}/sources
printf "[ i ] Finished build of >>> Dropbear-2013.60 <<<\n"
sleep 3
printf "[ i ] Starting build of >>> Wireless-tools.29 <<<\n"
tar -xvf wireless_tools.29.tar.gz
cd wireless_tools.29
sed -i s/gcc/\$\{CLFS\_TARGET\}\-gcc/g Makefile
sed -i s/\ ar/\ \$\{CLFS\_TARGET\}\-ar/g Makefile
sed -i s/ranlib/\$\{CLFS\_TARGET\}\-ranlib/g Makefile
make PREFIX=${EVEREST}/targetfs/usr
make install PREFIX=${EVEREST}/targetfs/usr
printf "[ i ] FInished build of >>> Wireless-tools.29 <<<\n"
sleep 3
mv ~/everest-install/scripts/pkginfo/everest-base-extras-pkginfo.json ${EVEREST}/targetfs/etc/glacier/pkginfo
printf "[ i ] The stage 4 installation script has finished. The stage 5 installation script can now be executed.\n"
exit 0

25
scripts/build-5.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
# Everest Linux 1.0.0-busybox - Stage 5 Installation Script
# This program is free software: See the GNU GPL v3.0 for details
printf "[ i ] NOTICE - This script must be run as root. Run the following command after loggin in as root:\n"
printf " echo ${EVEREST}\n"
printf "And ensure the output points to /mnt/everest.\n"
sleep 5
printf "[ i ] Moving final pkginfo files to the correct location...\n"
cd /home/everest/everest-install/scripts/pkginfo
mv everest-base-pkginfo.json ${EVEREST}/targetfs/etc/glacier/pkginfo
printf "[ i ] Changing ownership of system...\n"
chown -Rv root:root ${EVEREST}/targetfs
chgrp -v 13 ${EVEREST}/targetfs/var/log/lastlog
printf "[ i ] Creating tarball...\n"
install -dv ${EVEREST}/build
cd ${EVEREST}/targetfs
tar jcfv ${EVEREST}/build/everestlinux-1.0.0-busybox.tar.bz2 *
printf "[ i ] Everest Linux has finished building. A tarball of the build is available at /mnt/everest/build.\n"
printf "[ \xE2\x9C\x93 ] Everest Linux has been installed sucessfully. Thank you for choosing Everest!\n"
exit 0

View File

@ -0,0 +1,6 @@
{
"group_name": "everest-base-extras",
"group_version": "1.0.0-busybox",
"group_description": "Extras for the Everest Linux base system",
"incl_pkgs": "zlib 1.2.8", "netplug 1.2.9.2", "dropbear 2013.60", "wireless-tools 29"
}

View File

@ -1,5 +1,5 @@
{
"group_name": "everest-base-busybox-musl",
"group_name": "everest-base",
"group_version": "1.0.0-busybox",
"group-description": "The Everest Linux base system",
"incl_pkgs": "binutils 2.27", "busybox 1.24.2", "gcc 6.2.0", "gmp 6.1.1", "iana-etc 2.30", "linux 4.9.22", "linux-headers 4.9.22", "mpc 1.0.3", "mpfr 3.1.4", "musl 1.1.16"