Among other things this commit refactors mknet.sh to use the lib.sh
functions for executing code in the chroot and generally handling the
potential for future builds to generate netboot tarballs for ARM
platforms. ARM tarballs will require syslinux to be built for the
target architecture, but it should largely just be a drop in option.
The logic that sets up the QEMU static binary to permit running alien
binary formats is quite complex. This commit cleans up a lot of the
logic around this and adds a huge number of comments to try and
clarify why things happen when they do. Ultimately this commit
provides a lot of the ground work to factor out all of the chroot
setup into a seperate shell file that can be sourced by other mklive
tasks that need to operate inside of a chroot with a possibly alien
executable format.
Previously this script could produce rootfs tarballs suitable for a
few different systems. This worked but meant that several different
scripts were then building root filesystems instead of just using ones
produced by this script. This commit cleans up the script to produce
just a root filesystem. Note that this system is not bootable, that
still needs to be done by another script which processes platform
specific operations. This script just produces a root filesystem for
every architecture that XBPS understands.
This reverts commit 3c68cc4158.
This commit was not adequately reviewed and introduces unintentional
errors to the mklive system as well as unfavorable directory contents
in every published ISO.
The added option -H <hooksdir> allows the user to specify a directory
that contains hook scripts which should be run directly after the live
system's init sequence.
This can be used to customize the system (such as e.g. setting a
different default shell)
mklive:
- include support for booting both 32- and 64-bit UEFI firmware with
32- and 64-bit images.
- require grub packages for both firmware bitness types
(build-x86-images)
Installer:
- include support for installing both 32- and 64-bit UEFI grub loaders
- detect UEFI platform (firmware) bitness at install time
Closes: #102 [via git-merge-pr]