generated from EverestLinux/everest-install
Initial commit
This commit is contained in:
44
scripts/build-2.sh
Executable file
44
scripts/build-2.sh
Executable file
@@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
# Everest Linux 1.0.0-busybox - Stage 2 Installation Script
|
||||
# This program is free software: See the GNU GPL v3.0 for details
|
||||
|
||||
printf "[ !!! ] WARNING! DO NOT RUN THIS SCRIPT AS ROOT!\n"
|
||||
printf "[ i ] Starting in 10 seconds.\n"
|
||||
sleep 10
|
||||
printf "[ i ] Starting stage 2 installation...\n"
|
||||
sleep 0.5
|
||||
|
||||
printf "[ i ] Creating bash configuration files...\n"
|
||||
cat > ~/.bash_profile << "EOF"
|
||||
exec env -i HOME=${HOME} TERM=${TERM} PS1='\u:\w\$ ' /bin/bash
|
||||
EOF
|
||||
|
||||
cat > ~/.bashrc << "EOF"
|
||||
set +h
|
||||
umask 022
|
||||
EVEREST=/mnt/everest
|
||||
LC_ALL=POSIX
|
||||
PATH=${EVEREST}/cross-tools/bin:/bin:/usr/bin
|
||||
export EVEREST LC_ALL PATH
|
||||
EOF
|
||||
|
||||
printf "[ i ] Sourcing .bash_profile...\n"
|
||||
source ~/.bash_profile
|
||||
|
||||
printf "[ i ] Unsetting CFLAGS...\n"
|
||||
unset CFLAGS
|
||||
echo unset CFLAGS >> ~/.bashrc
|
||||
|
||||
printf "[ i ] Setting build variables...\n"
|
||||
export EVEREST_HOST=$(echo ${MACHTYPE} | sed "s/-[^-]*/-cross/")
|
||||
export EVEREST_TARGET=x86_64-linux-musl
|
||||
export EVEREST_CPU=k8
|
||||
|
||||
printf "[ i ] Setting CPU architecture..\n"
|
||||
export EVEREST_ARCH="x86"
|
||||
|
||||
printf "[ i ] Adding build variables to .bashrc...\n"
|
||||
echo export EVEREST_HOST=\""${EVEREST_HOST}\"" >> ~/.bashrc
|
||||
echo export EVEREST_TARGET=\""${EVEREST_TARGET}\"" >> ~/.bashrc
|
||||
echo export EVEREST_ARCH=\""${EVEREST_ARCH}\"" >> ~/.bashrc
|
||||
echo export EVEREST_CPU=\""${EVEREST_CPU}\"" >> ~/.bashrc
|
||||
258
scripts/build-3.sh
Executable file
258
scripts/build-3.sh
Executable file
@@ -0,0 +1,258 @@
|
||||
#!/bin/sh
|
||||
# Everest Linux 1.0.0-busybox - Stage 3 Installation Script
|
||||
# This program is free software: See the GNU GPL v3.0 for details.
|
||||
|
||||
printf "[ i ] NOTICE - This script can either be run as the 'everest' user (assuming they own /mnt/everest), or as root.\n"
|
||||
sleep 5
|
||||
|
||||
printf "[ i ] Creating sysroot directory...\n"
|
||||
mkdir -p ${EVEREST}/cross-tools/${EVEREST_TARGET}
|
||||
ln -sfv . ${EVEREST}/cross-tools/${EVEREST_TARGET}/usr
|
||||
|
||||
printf "[ i ] Moving tarballs to cross-tools directory...\n"
|
||||
cd /home/everest/everest-install/scripts/tempfiles
|
||||
mv -rv * $EVEREST/sources
|
||||
|
||||
printf "[ i ] Preparing to build initial toolchain...\n"
|
||||
cd $EVEREST/sources
|
||||
|
||||
printf "[ i ] Starting build of >>> Linux-Headers-4.9.22 <<<\n"
|
||||
sleep 3
|
||||
tar -xvf linux-4.9.22.tar.xz
|
||||
cd linux-4.9.22
|
||||
make mrproper
|
||||
make ARCH=${EVEREST_ARCH} headers_check
|
||||
make ARCH=${EVEREST_ARCH} INSTALL_HDR_PATH=${EVEREST}/cross-tools/${EVEREST_TARGET} headers_install
|
||||
cd ..
|
||||
|
||||
printf "[ i ] Starting build of >>> Binutils-2.27 <<<\n"
|
||||
sleep 3
|
||||
tar -xvf binutils-2.27.tar.bz2
|
||||
cd binutils-2.27
|
||||
mkdir -v ../binutils-build
|
||||
cd ../binutils-build
|
||||
../binutils-2.27/configure \
|
||||
--prefix=${EVEREST}/cross-tools \
|
||||
--target=${EVEREST_TARGET} \
|
||||
--with-sysroot=${EVEREST}/cross-tools/${EVEREST_TARGET} \
|
||||
--disable-nls \
|
||||
--disable-multilib
|
||||
make configure-host
|
||||
make
|
||||
make install
|
||||
cd ../..
|
||||
printf "[ i ] Finished build of >>> Binutils-2.27 <<<\n"
|
||||
|
||||
printf "[ i ] Starting build of >>> GCC-6.2.0 - Static <<<\n"
|
||||
sleep 3
|
||||
tar -xvf gcc-6.2.0.tar.bz2
|
||||
cd gcc-6.2.0
|
||||
tar xf ../mpfr-3.1.4.tar.bz2
|
||||
mv -v mpfr-3.1.4 mpfr
|
||||
tar xf ../gmp-6.1.1.tar.bz2
|
||||
mv -v gmp-6.1.1 gmp
|
||||
tar xf ../mpc-1.0.3.tar.gz
|
||||
mv -v mpc-1.0.3 mpc
|
||||
mkdir -v ../gcc-build
|
||||
cd ../gcc-build
|
||||
../gcc-6.2.0/configure \
|
||||
--prefix=${EVEREST}/cross-tools \
|
||||
--build=${EVEREST_HOST} \
|
||||
--host=${EVEREST_HOST} \
|
||||
--target=${EVEREST_TARGET} \
|
||||
--with-sysroot=${EVEREST}/cross-tools/${EVEREST_TARGET} \
|
||||
--disable-nls \
|
||||
--disable-shared \
|
||||
--without-headers \
|
||||
--with-newlib \
|
||||
--disable-decimal-float \
|
||||
--disable-libgomp \
|
||||
--disable-libmudflap \
|
||||
--disable-libssp \
|
||||
--disable-libatomic \
|
||||
--disable-libquadmath \
|
||||
--disable-threads \
|
||||
--enable-languages=c \
|
||||
--disable-multilib \
|
||||
--with-mpfr-include=$(pwd)/../gcc-6.2.0/mpfr/src \
|
||||
--with-mpfr-lib=$(pwd)/mpfr/src/.libs \
|
||||
--with-arch=${EVEREST_CPU}
|
||||
make all-gcc all-target-libgcc
|
||||
make install-gcc install-target-libgcc
|
||||
cd ..
|
||||
rm -rf gcc-build
|
||||
cd ..
|
||||
printf "[ i ] Finished build of >>> GCC-6.2.0 - Static <<<\n"
|
||||
|
||||
printf "[ i ] Starting build of >>> musl-1.1.16 <<<\n"
|
||||
sleep 3
|
||||
tar -xvf musl-1.1.16.tar.gz
|
||||
cd musl-1.1.16
|
||||
./configure \
|
||||
CROSS_COMPILE=${EVEREST_TARGET}- \
|
||||
--prefix=/ \
|
||||
--target=${EVEREST_TARGET}
|
||||
make
|
||||
DESTDIR=${EVEREST}/cross-tools/${EVEREST_TARGET} make install
|
||||
cd ..
|
||||
printf "[ i ] Finished build of >>> musl-1.1.16 <<<\n"
|
||||
|
||||
printf "[ i ] Starting build of >>> GCC-6.2.0 - Final <<<\n"
|
||||
sleep 3
|
||||
rm -rf gcc-6.2.0
|
||||
tar -xvf gcc-6.2.0.tar.bz2
|
||||
cd gcc-6.2.0
|
||||
tar xf ../mpfr-3.1.4.tar.bz2
|
||||
mv -v mpfr-3.1.4 mpfr
|
||||
tar xf ../gmp-6.1.1.tar.bz2
|
||||
mv -v gmp-6.1.1 gmp
|
||||
tar xf ../mpc-1.0.3.tar.gz
|
||||
mv -v mpc-1.0.3 mpc
|
||||
mkdir -v ../gcc-build
|
||||
cd ../gcc-build
|
||||
../gcc-6.2.0/configure \
|
||||
--prefix=${EVEREST}/cross-tools \
|
||||
--build=${EVEREST_HOST} \
|
||||
--host=${EVEREST_HOST} \
|
||||
--target=${EVEREST_TARGET} \
|
||||
--with-sysroot=${EVEREST}/cross-tools/${EVEREST_TARGET} \
|
||||
--disable-nls \
|
||||
--enable-languages=c,c++ \
|
||||
--enable-c99 \
|
||||
--enable-long-long \
|
||||
--disable-libmudflap \
|
||||
--disable-multilib \
|
||||
--with-mpfr-include=$(pwd)/../gcc-6.2.0/mpfr/src \
|
||||
--with-mpfr-lib=$(pwd)/mpfr/src/.libs \
|
||||
--with-arch=${EVEREST_CPU}
|
||||
make
|
||||
make install
|
||||
cd ..
|
||||
printf "[ i ] Finished build of >> GCC-6.2.0 - Final <<<\n"
|
||||
|
||||
printf "[ i ] Toolchain has finished building.\n"
|
||||
|
||||
printf "[ i ] Setting toolchain variables...\n"
|
||||
echo export CC=\""${EVEREST_TARGET}-gcc --sysroot=${EVEREST}/targetfs\"" >> ~/.bashrc
|
||||
echo export CXX=\""${EVEREST_TARGET}-g++ --sysroot=${EVEREST}/targetfs\"" >> ~/.bashrc
|
||||
echo export AR=\""${EVEREST_TARGET}-ar\"" >> ~/.bashrc
|
||||
echo export AS=\""${EVEREST_TARGET}-as\"" >> ~/.bashrc
|
||||
echo export LD=\""${EVEREST_TARGET}-ld --sysroot=${EVEREST}/targetfs\"" >> ~/.bashrc
|
||||
echo export RANLIB=\""${EVEREST_TARGET}-ranlib\"" >> ~/.bashrc
|
||||
echo export READELF=\""${EVEREST_TARGET}-readelf\"" >> ~/.bashrc
|
||||
echo export STRIP=\""${EVEREST_TARGET}-strip\"" >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
printf "[ i ] Starting build of system...\n"
|
||||
sleep 3
|
||||
|
||||
printf "[ i ] Creating system directories...\n"
|
||||
mkdir -pv ${EVEREST}/targetfs/{bin,boot,dev,etc,home,lib/{firmware,modules}}
|
||||
mkdir -pv ${EVEREST}/targetfs/{mnt,opt,proc,sbin,srv,sys}
|
||||
mkdir -pv ${EVEREST}/targetfs/var/{cache,lib,local,lock,log,opt,run,spool}
|
||||
install -dv -m 0750 ${EVEREST}/targetfs/root
|
||||
install -dv -m 1777 ${EVEREST}/targetfs/{var/,}tmp
|
||||
mkdir -pv ${EVEREST}/targetfs/usr/{,local/}{bin,include,lib,sbin,share,src}
|
||||
ln -svf ../proc/mounts ${EVEREST}/targetfs/etc/mtab
|
||||
cat > ${EVEREST}/targetfs/etc/passwd << "EOF"
|
||||
root::0:0:root:/root:/bin/ash
|
||||
EOF
|
||||
cat > ${CLFS}/targetfs/etc/group << "EOF"
|
||||
root:x:0:
|
||||
bin:x:1:
|
||||
sys:x:2:
|
||||
kmem:x:3:
|
||||
tty:x:4:
|
||||
tape:x:5:
|
||||
daemon:x:6:
|
||||
floppy:x:7:
|
||||
disk:x:8:
|
||||
lp:x:9:
|
||||
dialout:x:10:
|
||||
audio:x:11:
|
||||
video:x:12:
|
||||
utmp:x:13:
|
||||
usb:x:14:
|
||||
cdrom:x:15:
|
||||
EOF
|
||||
touch ${EVEREST}/targetfs/var/log/lastlog
|
||||
chmod -v 664 ${EVEREST}/targetfs/var/log/lastlog
|
||||
|
||||
printf "[ i ] Starting build of >>> libgcc-6.2.0 <<<\n"
|
||||
cp -v ${EVEREST}/cross-tools/${EVEREST_TARGET}/lib/libgcc_s.so.1 ${EVEREST}/targetfs/lib/
|
||||
${EVEREST_TARGET}-strip ${EVEREST}/targetfs/lib/libgcc_s.so.1
|
||||
printf "[ i ] Finished build of >>> libgcc-6.2.0 <<<\n"
|
||||
sleep 1
|
||||
|
||||
printf "[ i ] Starting build of >>> musl-1.1.16 <<<\n"
|
||||
rm -rf musl-1.1.16
|
||||
tar -xvf musl-1.1.16.tar.gz
|
||||
cd musl-1.1.16
|
||||
./configure \
|
||||
CROSS_COMPILE=${EVEREST_TARGET}- \
|
||||
--prefix=/ \
|
||||
--disable-static \
|
||||
--target=${EVEREST_TARGET}
|
||||
make
|
||||
DESTDIR=${EVEREST}/targetfs make install-libs
|
||||
cd ..
|
||||
printf "[ i ] Finished build of >>> musl-1.1.16 <<<\n"
|
||||
sleep 1
|
||||
|
||||
printf "[ i ] Starting build of >>> busybox-1.24.2 <<<\n"
|
||||
tar -xvf busybox-1.24.2.tar.bz2
|
||||
cd busybox-1.24.2
|
||||
make distclean
|
||||
make ARCH="${EVEREST_ARCH}" defconfig
|
||||
sed -i 's/\(CONFIG_\)\(.*\)\(INETD\)\(.*\)=y/# \1\2\3\4 is not set/g' .config
|
||||
sed -i 's/\(CONFIG_IFPLUGD\)=y/# \1 is not set/' .config
|
||||
sed -i 's/\(CONFIG_FEATURE_WTMP\)=y/# \1 is not set/' .config
|
||||
sed -i 's/\(CONFIG_FEATURE_UTMP\)=y/# \1 is not set/' .config
|
||||
sed -i 's/\(CONFIG_UDPSVD\)=y/# \1 is not set/' .config
|
||||
sed -i 's/\(CONFIG_TCPSVD\)=y/# \1 is not set/' .config
|
||||
make ARCH="${EVEREST_ARCH}" CROSS_COMPILE="${EVEREST_TARGET}-"
|
||||
make ARCH="${EVEREST_ARCH}" CROSS_COMPILE="${EVEREST_TARGET}-"\
|
||||
CONFIG_PREFIX="${EVEREST}/targetfs" install
|
||||
cp -v examples/depmod.pl ${EVEREST}/cross-tools/bin
|
||||
chmod -v 755 ${EVEREST}/cross-tools/bin/depmod.pl
|
||||
cd ..
|
||||
printf "[ i ] Finished build of >>> busybox-1.24.2 <<<\n"
|
||||
sleep 1
|
||||
|
||||
printf "[ i ] Starting build of >>> iana-etc-2.30 <<<\n"
|
||||
tar -xvf iana-etc-2.30.tar.bz2
|
||||
cd iana-etc-2.30
|
||||
patch -Np1 -i ../iana-etc-2.30-update-2.patch
|
||||
make get
|
||||
make STRIP=yes
|
||||
make DESTFIR=${EVEREST}/targetfs install
|
||||
printf "[ i ] Finished build of >>> iana-etc-2.30 <<<\n"
|
||||
sleep 1
|
||||
|
||||
printf "[ i ] Finished building system software\n"
|
||||
sleep 1
|
||||
|
||||
printf "[ i ] Creating /etc/fstab...\n"
|
||||
cat > ${EVEREST}/targetfs/etc/fstab << "EOF"
|
||||
# file-system mount-point type options dump fsck
|
||||
EOF
|
||||
|
||||
printf "[ i ] Building the Linux kernel...\n"
|
||||
rm -rf linux-4.9.22
|
||||
tar -xvf linux-4.9.22.tar.xz
|
||||
cd linux-4.9.22
|
||||
make mrproper
|
||||
printf "[ !!! ] WARNING!!! KERNEL INSTALLATION WILL COMMENCE ONCE MENUCONFIG IS EXITED BY THE USER!!!\n"
|
||||
wait 5
|
||||
make ARCH=${EVEREST_ARCH} CROSS_COMPILE=${EVEREST_TARGET}- menuconfig
|
||||
make ARCH=${EVEREST_ARCH} CROSS_COMPILE=${EVEREST_TARGET}-
|
||||
make ARCH=${EVEREST_ARCH} CROSS_COMPILE=${EVEREST_TARGET}- \
|
||||
INSTALL_MOD_PATH=${EVEREST}/targetfs modules_install
|
||||
printf "[ i ] Finished build of the Linux kernel...\n"
|
||||
|
||||
printf "[ i ] NOTE: Bootloader will need to be installed manually by the user (unless utilizing the bootloader of another system)\n"
|
||||
wait 3
|
||||
|
||||
printf "[ i ] Bootstrapping Glacier package management system...\n"
|
||||
|
||||
|
||||
17
scripts/build-settings
Executable file
17
scripts/build-settings
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# Settings for the Everest installation
|
||||
|
||||
# Variable pointing to the Everest build directory
|
||||
export EVEREST=/mnt/everest
|
||||
|
||||
# Location of the Everest build directory
|
||||
export EVEREST_BUILD_DIR=/mnt/everest
|
||||
|
||||
# Root partition to build the system on
|
||||
export EVEREST_ROOT=
|
||||
|
||||
# Boot partition for the system
|
||||
export EVEREST_BOOT=
|
||||
|
||||
# Shell for the build user
|
||||
export EVEREST_BUILD_SHELL=/bin/bash
|
||||
151
scripts/build.sh
Executable file
151
scripts/build.sh
Executable file
@@ -0,0 +1,151 @@
|
||||
#!/bin/sh
|
||||
# Everest Linux 1.0.0-busybox - Stage 1 Installation Script
|
||||
# This program is free software: See the GNU GPL v3.0 for details
|
||||
|
||||
printf "=== WELCOME TO EVEREST LINUX! ===\n"
|
||||
printf "This program will do the following:\n"
|
||||
sleep 0.2
|
||||
printf " - Create the necessary directory layout (as defined by the Filesystem Hierarchy Standard)\n"
|
||||
sleep 0.2
|
||||
printf " - Load the build settings defined in the 'build-settings' file\n"
|
||||
sleep 0.2
|
||||
printf " - Bootstrap the Glacier package manager\n"
|
||||
sleep 0.2
|
||||
printf " - Compile Everest Linux v1.0.0-busybox\n"
|
||||
sleep 0.2
|
||||
printf "The following settings will be used. If these do not work, alter this script.\n"
|
||||
sleep 0.2
|
||||
printf "/mnt/everest - build directory\n"
|
||||
sleep 0.2
|
||||
printf "everest - build user\n"
|
||||
sleep 0.2
|
||||
printf "/bin/bash - shell for user\n"
|
||||
sleep 0.2
|
||||
printf "This script will perform actions that are >>> NOT REVERSIBLE! <<<\n"
|
||||
sleep 0.2
|
||||
read -p "Are you sure you want to continue? (y/n) " -n 1 -r
|
||||
echo # (optional) move to a new line
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
printf "[!!!] The script will execute in 10"
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "9"
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "8"
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "7"
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "6"
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "5"
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "4"
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "3"
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "2"
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "1"
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "."
|
||||
sleep 0.25
|
||||
printf "0\n"
|
||||
printf "[ i ] Loading build-settings file...\n"
|
||||
./build-settings
|
||||
printf "[ i ] Creating build directory...\n"
|
||||
mkdir /mnt/everest # CHANGE THIS IF YOU DO NOT WANT YOUR BUILD DIRECTORY TO BE /mnt/everest
|
||||
export EVEREST=/mnt/everest
|
||||
printf "[ i ] Ensuring EVEREST variable is correctly set up... (output should be the path to the build directory)\n"
|
||||
echo $EVEREST
|
||||
printf "[ i ] Changing permissions...\n"
|
||||
chmod 777 /mnt/everest
|
||||
printf "[ i ] Creating sources directory...\n"
|
||||
mkdir -pv $EVEREST/sources
|
||||
printf "[ i ] Downloading packages...\n"
|
||||
mkdir -pv tempfiles
|
||||
cd tempfiles
|
||||
wget --quiet --show-progress http://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.bz2
|
||||
wget --quiet --show-progress http://busybox.net/downloads/busybox-1.24.2.tar.bz2
|
||||
wget --quiet --show-progress https://github.com/cross-lfs/bootscripts-embedded/archive/master.tar.gz
|
||||
wget --quiet --show-progress http://gcc.gnu.org/pub/gcc/releases/gcc-6.2.0/gcc-6.2.0.tar.bz2
|
||||
wget --quiet --show-progress http://ftp.gnu.org/gnu/gmp/gmp-6.1.1.tar.bz2
|
||||
wget --quiet --show-progress http://sethwklein.net/iana-etc-2.30.tar.bz2
|
||||
wget --quiet --show-progress http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.9.22.tar.xz
|
||||
wget --quiet --show-progress http://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
|
||||
wget --quiet --show-progress http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.4.tar.bz2
|
||||
wget --quiet --show-progress http://www.musl-libc.org/releases/musl-1.1.16.tar.gz
|
||||
printf "[ i ] Downloading patches...\n"
|
||||
wget --quiet --show-progress http://patches.clfs.org/embedded-dev/iana-etc-2.30-update-2.patch
|
||||
printf "[ i ] Double checking EVEREST variable is correct...\n"
|
||||
echo $EVEREST
|
||||
printf "[ i ] Creating user for build...\n"
|
||||
groupadd everest
|
||||
useradd -s /bin/bash -g everest -m -k /dev/null everest
|
||||
printf "[ ? ] Enter a password for the new user:\n"
|
||||
passwd everest
|
||||
printf "[ i ] Giving ownership of build directory to the new user...\n"
|
||||
chown -Rv everest $EVEREST
|
||||
printf "[ i ] The stage 1 installation has now finished.\n"
|
||||
#printf "su - everest"
|
||||
printf "[ i ] Please execute the stage 2 installation.\n"
|
||||
su - everest
|
||||
#printf "test"
|
||||
fi
|
||||
1
scripts/everest-release
Normal file
1
scripts/everest-release
Normal file
@@ -0,0 +1 @@
|
||||
1.0.0-busybox
|
||||
9
scripts/os-release
Normal file
9
scripts/os-release
Normal file
@@ -0,0 +1,9 @@
|
||||
NAME="Everest Linux"
|
||||
PRETTY_NAME="Everest Linux"
|
||||
ID=everest
|
||||
BUILD_ID=1.0.0-busybox
|
||||
ANSI_COLOR=""
|
||||
HOME_URL="https://everestlinux.org/"
|
||||
SUPPORT_URL="https://git.everestlinux.org/"
|
||||
BUG_REPORT_URL="https://git.everestlinux.org/"
|
||||
LOGO=everestlinux-logo
|
||||
6
scripts/pkginfo/everest-base-busybox-musl-pkginfo.json
Normal file
6
scripts/pkginfo/everest-base-busybox-musl-pkginfo.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"group_name": "everest-base-busybox-musl",
|
||||
"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"
|
||||
}
|
||||
1
scripts/sysfiles/hostname
Normal file
1
scripts/sysfiles/hostname
Normal file
@@ -0,0 +1 @@
|
||||
everest
|
||||
6
scripts/sysfiles/hosts
Normal file
6
scripts/sysfiles/hosts
Normal file
@@ -0,0 +1,6 @@
|
||||
# Begin /etc/hosts (network card version)
|
||||
|
||||
127.0.0.1 localhost
|
||||
192.168.1.1 [<HOSTNAME>.example.org] everest
|
||||
|
||||
# End /etc/hosts (network card version)
|
||||
18
scripts/sysfiles/inittab
Normal file
18
scripts/sysfiles/inittab
Normal file
@@ -0,0 +1,18 @@
|
||||
# /etc/inittab
|
||||
|
||||
::sysinit:/etc/rc.d/startup
|
||||
|
||||
tty1::respawn:/sbin/getty 38400 tty1
|
||||
tty2::respawn:/sbin/getty 38400 tty2
|
||||
tty3::respawn:/sbin/getty 38400 tty3
|
||||
tty4::respawn:/sbin/getty 38400 tty4
|
||||
tty5::respawn:/sbin/getty 38400 tty5
|
||||
tty6::respawn:/sbin/getty 38400 tty6
|
||||
|
||||
# Put a getty on the serial line (for a terminal). Uncomment this line if
|
||||
# you're using a serial console on ttyS0, or uncomment and adjust it if using a
|
||||
# serial console on a different serial port.
|
||||
#::respawn:/sbin/getty -L ttyS0 115200 vt100
|
||||
|
||||
::shutdown:/etc/rc.d/shutdown
|
||||
::ctrlaltdel:/sbin/reboot
|
||||
105
scripts/sysfiles/mdev
Normal file
105
scripts/sysfiles/mdev
Normal file
@@ -0,0 +1,105 @@
|
||||
# /etc/mdev/conf
|
||||
|
||||
# Devices:
|
||||
# Syntax: %s %d:%d %s
|
||||
# devices user:group mode
|
||||
|
||||
# null does already exist; therefore ownership has to be changed with command
|
||||
null root:root 0666 @chmod 666 $MDEV
|
||||
zero root:root 0666
|
||||
grsec root:root 0660
|
||||
full root:root 0666
|
||||
|
||||
random root:root 0666
|
||||
urandom root:root 0444
|
||||
hwrandom root:root 0660
|
||||
|
||||
# console does already exist; therefore ownership has to be changed with command
|
||||
#console root:tty 0600 @chmod 600 $MDEV && mkdir -p vc && ln -sf ../$MDEV vc/0
|
||||
console root:tty 0600 @mkdir -pm 755 fd && cd fd && for x in 0 1 2 3 ; do ln -sf /proc/self/fd/$x $x; done
|
||||
|
||||
fd0 root:floppy 0660
|
||||
kmem root:root 0640
|
||||
mem root:root 0640
|
||||
port root:root 0640
|
||||
ptmx root:tty 0666
|
||||
|
||||
# ram.*
|
||||
ram([0-9]*) root:disk 0660 >rd/%1
|
||||
loop([0-9]+) root:disk 0660 >loop/%1
|
||||
sd[a-z].* root:disk 0660 */lib/mdev/usbdisk_link
|
||||
hd[a-z][0-9]* root:disk 0660 */lib/mdev/ide_links
|
||||
md[0-9] root:disk 0660
|
||||
|
||||
tty root:tty 0666
|
||||
tty[0-9] root:root 0600
|
||||
tty[0-9][0-9] root:tty 0660
|
||||
ttyS[0-9]* root:tty 0660
|
||||
pty.* root:tty 0660
|
||||
vcs[0-9]* root:tty 0660
|
||||
vcsa[0-9]* root:tty 0660
|
||||
|
||||
ttyLTM[0-9] root:dialout 0660 @ln -sf $MDEV modem
|
||||
ttySHSF[0-9] root:dialout 0660 @ln -sf $MDEV modem
|
||||
slamr root:dialout 0660 @ln -sf $MDEV slamr0
|
||||
slusb root:dialout 0660 @ln -sf $MDEV slusb0
|
||||
fuse root:root 0666
|
||||
|
||||
# dri device
|
||||
card[0-9] root:video 0660 =dri/
|
||||
|
||||
# alsa sound devices and audio stuff
|
||||
pcm.* root:audio 0660 =snd/
|
||||
control.* root:audio 0660 =snd/
|
||||
midi.* root:audio 0660 =snd/
|
||||
seq root:audio 0660 =snd/
|
||||
timer root:audio 0660 =snd/
|
||||
|
||||
adsp root:audio 0660 >sound/
|
||||
audio root:audio 0660 >sound/
|
||||
dsp root:audio 0660 >sound/
|
||||
mixer root:audio 0660 >sound/
|
||||
sequencer.* root:audio 0660 >sound/
|
||||
|
||||
# misc stuff
|
||||
agpgart root:root 0660 >misc/
|
||||
psaux root:root 0660 >misc/
|
||||
rtc root:root 0664 >misc/
|
||||
|
||||
# input stuff
|
||||
event[0-9]+ root:root 0640 =input/
|
||||
mice root:root 0640 =input/
|
||||
mouse[0-9] root:root 0640 =input/
|
||||
ts[0-9] root:root 0600 =input/
|
||||
|
||||
# v4l stuff
|
||||
vbi[0-9] root:video 0660 >v4l/
|
||||
video[0-9] root:video 0660 >v4l/
|
||||
|
||||
# dvb stuff
|
||||
dvb.* root:video 0660 */lib/mdev/dvbdev
|
||||
|
||||
# load drivers for usb devices
|
||||
usbdev[0-9].[0-9] root:root 0660 */lib/mdev/usbdev
|
||||
usbdev[0-9].[0-9]_.* root:root 0660
|
||||
|
||||
# net devices
|
||||
tun[0-9]* root:root 0600 =net/
|
||||
tap[0-9]* root:root 0600 =net/
|
||||
|
||||
# zaptel devices
|
||||
zap(.*) root:dialout 0660 =zap/%1
|
||||
dahdi!(.*) root:dialout 0660 =dahdi/%1
|
||||
|
||||
# raid controllers
|
||||
cciss!(.*) root:disk 0660 =cciss/%1
|
||||
ida!(.*) root:disk 0660 =ida/%1
|
||||
rd!(.*) root:disk 0660 =rd/%1
|
||||
|
||||
sr[0-9] root:cdrom 0660 @ln -sf $MDEV cdrom
|
||||
|
||||
# hpilo
|
||||
hpilo!(.*) root:root 0660 =hpilo/%1
|
||||
|
||||
# xen stuff
|
||||
xvd[a-z] root:root 0660 */lib/mdev/xvd_links
|
||||
20
scripts/sysfiles/profile
Normal file
20
scripts/sysfiles/profile
Normal file
@@ -0,0 +1,20 @@
|
||||
# /etc/profile
|
||||
|
||||
# Set the initial path
|
||||
export PATH=/bin:/usr/bin
|
||||
|
||||
if [ `id -u` -eq 0 ] ; then
|
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
||||
unset HISTFILE
|
||||
fi
|
||||
|
||||
# Setup some environment variables.
|
||||
export USER=`id -un`
|
||||
export LOGNAME=$USER
|
||||
export HOSTNAME=`/bin/hostname`
|
||||
export HISTSIZE=1000
|
||||
export HISTFILESIZE=1000
|
||||
export PAGER='/bin/more '
|
||||
export EDITOR='/bin/vi'
|
||||
|
||||
# End /etc/profile
|
||||
Reference in New Issue
Block a user