mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-05 10:55:24 +01:00
Now that we have the Linux Kernel built, we move to a full-disk (rather than initramfs) setup in sysc. However, we cannot assume the seed kernel has support for mounting hard drives. So, first we need to kexec into sysb, which is used as a jumping off point to create the hard drive for sysc. Additionally, since 2.6.16 does not have support for on-demand initramfs (initramfs must be built into kernel), we will have to rebuild the linux kernel within sysb without the initramfs. All of this process is not performed for chroot mode. Instead, we skip sysb and jump straight to sysc, copying over appropriate data. The python scripts have been changed slightly. Each sys* inherits SysGeneral, which contains various functions which are not specific to any sys* and simplifies those files. rootfs now also handles sysb and sysc. bootstrap.cfg also gives an indication whether we are running in a chroot to avoid attempting to kexec/mount within a chroot.
80 lines
1.2 KiB
Bash
Executable file
80 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
|
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
|
# SPDX-FileCopyrightText: 2021 Melg Eight <public.melg8@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
set -e
|
|
|
|
trap "env - PATH=${PREFIX}/bin PS1='\w # ' bash -i" EXIT
|
|
|
|
. helpers.sh
|
|
|
|
. bootstrap.cfg
|
|
|
|
trap bash EXIT
|
|
|
|
build xz-5.0.5
|
|
|
|
build automake-1.11.2
|
|
|
|
build autoconf-2.69
|
|
|
|
build automake-1.15.1
|
|
|
|
build tar-1.34
|
|
|
|
build coreutils-8.32
|
|
|
|
build pkg-config-0.29.2
|
|
|
|
build make-4.2.1
|
|
|
|
build gmp-6.2.1
|
|
|
|
build autoconf-archive-2021.02.19
|
|
|
|
build mpfr-4.1.0
|
|
|
|
build mpc-1.2.1
|
|
|
|
build flex-2.5.33
|
|
|
|
build bison-2.3
|
|
|
|
build bison-3.4.2
|
|
|
|
build perl-5.10.1
|
|
|
|
build dist-3.5-236 '' '' '' dist-d1de81f
|
|
|
|
build perl-5.32.1
|
|
|
|
build automake-1.16.3
|
|
|
|
build patch-2.7.6
|
|
|
|
build gettext-0.21
|
|
|
|
build texinfo-6.7
|
|
|
|
build zlib-1.2.11
|
|
|
|
build gcc-4.7.4
|
|
|
|
build gperf-3.1
|
|
|
|
build libunistring-0.9.10
|
|
|
|
if [ "$FORCE_TIMESTAMPS" = True ] ; then
|
|
echo 'Forcing all files timestamps to be 0 unix time.'
|
|
canonicalise_all_files_timestamp
|
|
fi
|
|
|
|
echo "Bootstrapping completed."
|
|
|
|
cd "${PREFIX}"
|
|
exec env - PATH=${PREFIX}/bin PS1="\w # " bash -i
|