mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-13 23:05: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.
36 lines
1.1 KiB
Bash
Executable file
36 lines
1.1 KiB
Bash
Executable file
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
src_prepare() {
|
|
default_src_prepare
|
|
|
|
# Regenerate bison files
|
|
# perly.c looks suspiciously like it is from bison, but is not; from the
|
|
# below script:
|
|
# Note that perly.c is *not* regenerated - this is now a static file which
|
|
# is not dependent on perly.y any more.
|
|
perl regen_perly.pl -b bison-2.3
|
|
# Remove the source file so make works.
|
|
rm perly.y
|
|
|
|
# Regenerate other prebuilt header files
|
|
# Taken from headers of regen scripts
|
|
rm lib/warnings.pm warnings.h regnodes.h reentr.h reentr.c overload.h \
|
|
overload.c lib/overload/numbers.pm opcode.h opnames.h pp_proto.h \
|
|
pp.sym keywords.h embed.h embedvar.h global.sym perlapi.c perlapi.h \
|
|
proto.h
|
|
perl regen.pl
|
|
|
|
mkdir -p ext/File ext/Digest ext/Data
|
|
mv ext/File-Glob ext/File/Glob
|
|
mv ext/Digest-SHA ext/Digest/SHA
|
|
mv ext/Data-Dumper ext/Data/Dumper
|
|
}
|
|
|
|
src_install() {
|
|
# Remove old perl
|
|
rm -rf "${PREFIX}"/lib/perl5/
|
|
|
|
default
|
|
}
|