Commit graph

8 commits

Author SHA1 Message Date
fosslinux
5c88f1c87f Add sysb and sysc scaffolding.
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.
2021-08-27 14:54:08 +10:00
Andrius Štikonas
3835f1e1aa Switch toolchain triplet to i386-unknown-linux-musl 2021-07-15 17:57:45 +01:00
Bastian Bittorf
50417514de fixes bash build.
fixes: https://github.com/fosslinux/live-bootstrap/issues/99

in my usecase (qemu, kernel 3.18.140) around 50% of
all builds are failing with a wrong binary hash.
the culprit is a varying generation of 'pipesize.h' during:

```
/bin/sh ./psize.sh > pipesize.h
```

normally generated 'pipesize.h' looks like:
```
/*
* pipesize.h
*
* This file is automatically generated by psize.sh
* Do not edit!
*/

 #define PIPESIZE 65536
```

in the error case the last line has 512 instead of 65536.
With this change we use a fixed output of the large PIPESIZE.
2021-04-16 05:50:47 +00:00
Andrius Štikonas
70d1fc4163 Add support for DESTDIR variable in make install. 2021-04-02 12:24:40 +01:00
Andrius Štikonas
cb52876ba8 Add a comment explaining bash workaround. 2021-03-24 22:09:23 +00:00
Andrius Štikonas
634cae7b68 Build bash 5.1 only after GCC. 2021-03-24 19:37:12 +00:00
Andrius Štikonas
8cd8c0fe31 Rebuild bash 5.1 with gcc. 2021-03-23 18:02:14 +00:00
Andrius Štikonas
7162bd8f2b Bump bash to 5.1. 2021-03-20 12:36:07 +00:00
Renamed from sysa/bash-3.2.57/bash-3.2.57.sh (Browse further)