Commit graph

24 commits

Author SHA1 Message Date
Andrius Štikonas
5b032cb46c rootfs.py refactoring.
Switch to bzip2 packages
Move most of the preprocessing done by rootfs.py
into kaem and bash scripts inside live-bootstrap.
2022-04-21 00:49:56 +01:00
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
fosslinux
4c6e7afa42 Remove build directory
This extremely conserves storage space. Needed for larger packages to
fit within 4GB RAM limit of i386 no-PAE.
2021-08-27 14:54:07 +10:00
Andrius Štikonas
c8784cbcd3 Split installed files out of /after into /image. 2021-06-29 17:49:34 +01:00
fosslinux
c05c16e12c helpers.sh: add 5th argument, directory to cd into 2021-05-26 07:27:22 +10:00
fosslinux
338c85c8b8 Use absolute instead of relative paths in helpers.sh 2021-05-26 07:27:22 +10:00
fosslinux
c168a3bd4c
Merge pull request #115 from melg8/master
Add coreutils 8.32 and fix creation dates
2021-05-24 07:34:23 +10:00
Melg Eight
cf4ce56603
Add config file and force timestamp conditional option 2021-05-20 02:04:39 +03:00
Andrius Štikonas
cd3fb17aa6 Unpack tarballs with --no-same-owner. 2021-05-08 13:53:42 +01:00
Andrius Štikonas
a2c5745da4 helpers.sh: Add a helper function to call appropriate default stage function. 2021-05-03 23:48:06 +01:00
fosslinux
54234a5683 Add multiple tarball support, named args in rootfs.sh
1. Add named args to make this more clear and avoid unnessecarily
   setting default values for certain values ot set others positioned
   later.
2. Add support for multiple tarballs in rootfs.sh.
3. Add support for extracting multiple tarballs (name dosen't matter
   anymore) in helpers.sh.
4. Add comment for 4th arg to build.
2021-04-06 08:59:37 +10:00
Andrius Štikonas
70d1fc4163 Add support for DESTDIR variable in make install. 2021-04-02 12:24:40 +01:00
Paul Dersey
8565d26fef Update initial build of sed from version 4.0.7 to 4.0.9 2021-03-17 17:11:16 -04:00
Paul Dersey
6a5e57c2f8 helpers.sh: update default_src_unpack to support uncompressed tar files 2021-03-17 17:11:16 -04:00
Andrius Štikonas
f3cea25b87 Rebuild musl with fewer patches. 2021-03-03 20:36:12 +00:00
Andrius Štikonas
ecb6e4868a Be a bit more verbose when applying patches. 2021-03-02 22:02:07 +00:00
Andrius Štikonas
0be033fada Do remove empty checksum files. GNU sha256sum does not accept them. 2021-02-28 22:07:55 +00:00
Paul Dersey
a6bc93b059 helpers.sh: fix default_src_unpack for tar 1.12
tar 1.12 does not support j for bzip2 or J for xz.
Instead use --use-compress-program
2021-02-24 16:02:53 -05:00
fosslinux
77ccf06efc Implement sha256summing in bash build harness
1. Adds sha256sum stage to the bash build harness.
2. Adds a third argument to build(), the checksum file name. This is
   used where there is more than one checksum file, most notably
   in multi-stage compilations.
3. Adds checksum files to all remaining programs.
4. Adds appropriate 3rd argument where needed (coreutils, tcc-musl,
   bison).
2021-02-20 10:52:54 +11:00
Andrius Štikonas
c9a390d67c Update m4 to 1.4.7 2021-02-07 17:33:09 +00:00
Andrius Štikonas
9d5519ad79 Unset overridden functions at the end of build function. 2021-02-03 22:09:30 +00:00
Andrius Štikonas
066d32933d Fix src_unpack not being sourced. 2021-02-03 21:30:12 +00:00
Andrius Štikonas
de9548dbff Build flex 2.5.11. 2021-01-30 19:27:02 +00:00
Andrius Štikonas
707328a15c Add bash based build harness. 2021-01-30 17:56:51 +00:00