This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
doc:howto:tce [2019/09/17 12:02] stefanbaur [Starting the Build] we need to fetch kernel and initrd from the chroot directory to be buildtype-independent |
doc:howto:tce [2019/09/18 19:29] stefanbaur [Configuring the Build] updated configuration for experimental ARM support |
||
---|---|---|---|
Line 44: | Line 44: | ||
# we have a successful connect on port 3142, assume | # we have a successful connect on port 3142, assume | ||
# it's apt-cacher-ng and use it | # it's apt-cacher-ng and use it | ||
+ | # | ||
if nc -z 127.0.0.1 3142 ; then | if nc -z 127.0.0.1 3142 ; then | ||
- | # bad idea with apt-cacher-ng, | + | |
- | # export https_proxy=http:// | + | # export https_proxy=http:// |
- | # export http_proxy=http:// | + | # export http_proxy=http:// |
- | # export ftp_proxy=http:// | + | # export ftp_proxy=http:// |
- | export LB_APT_FTP_PROXY=http:// | + | |
- | export LB_APT_HTTP_PROXY=http:// | + | export LB_APT_HTTP_PROXY=http:// |
fi | fi | ||
# Select ONE of the following git reposities | # Select ONE of the following git reposities | ||
# this one loosely corresponds to " | # this one loosely corresponds to " | ||
- | #export LBX2GO_CONFIG=' | + | # export LBX2GO_CONFIG=' |
# this one loosely corresponds to " | # this one loosely corresponds to " | ||
export LBX2GO_CONFIG=' | export LBX2GO_CONFIG=' | ||
Line 68: | Line 68: | ||
export LBX2GO_ARCH=' | export LBX2GO_ARCH=' | ||
# 32-Bit, larger memory footprint, but faster performance on i686 and newer | # 32-Bit, larger memory footprint, but faster performance on i686 and newer | ||
- | #export LBX2GO_ARCH=' | + | # export LBX2GO_ARCH=' |
# 32-Bit, smallest memory footprint - not available on buster | # 32-Bit, smallest memory footprint - not available on buster | ||
# export LBX2GO_ARCH=' | # export LBX2GO_ARCH=' | ||
+ | # EXPERIMENTAL: | ||
+ | # export LBX2GO_ARCH=' | ||
+ | # Note that ARM builds are currently not working, at least not on the Pi. | ||
# If you want to use the stock ISO image as created by this script, add your boot parameters here | # If you want to use the stock ISO image as created by this script, add your boot parameters here | ||
- | #export LBX2GO_BOOTAPPEND_LIVE=" | + | # export LBX2GO_BOOTAPPEND_LIVE=" |
# detect if the selected git repo is meant to build a buster, stretch or jessie image | # detect if the selected git repo is meant to build a buster, stretch or jessie image | ||
if [ -z " | if [ -z " | ||
- | | + | |
- | export LBX2GO_BOOTAPPEND_LIVE+=" | + | export LBX2GO_BOOTAPPEND_LIVE+=" |
elif [ -z " | elif [ -z " | ||
- | | + | |
- | export LBX2GO_BOOTAPPEND_LIVE+=" | + | export LBX2GO_BOOTAPPEND_LIVE+=" |
else | else | ||
- | | + | |
fi | fi | ||
# newer versions of live-build use the plural form of this parameter | # newer versions of live-build use the plural form of this parameter | ||
if $(LANG=C lb config --help | grep -q bootloaders) ; then | if $(LANG=C lb config --help | grep -q bootloaders) ; then | ||
- | | + | |
else | else | ||
- | | + | |
fi | fi | ||
# set boot loader type - leave this unchanged unless you really know what you're doing | # set boot loader type - leave this unchanged unless you really know what you're doing | ||
- | export LBX2GO_BOOTLOADER=" | + | if echo $LBX2GO_ARCH | awk ' |
+ | # This is part of our experimental ARM support | ||
+ | LBX2GO_BOOTLOADERPARAMNAME=" | ||
+ | LBX2GO_BOOTLOADER=" | ||
+ | else | ||
+ | | ||
+ | fi | ||
# These options are meant to reduce the image size. | # These options are meant to reduce the image size. | ||
Line 128: | Line 137: | ||
--distribution $LBX2GO_DEBVERSION" | --distribution $LBX2GO_DEBVERSION" | ||
+ | # This is part of our experimental ARM support | ||
+ | if echo " | ||
+ | export LBX2GO_DEFAULTS+=" | ||
+ | --bootstrap-qemu-static / | ||
+ | fi | ||
export LBX2GO_ARCHIVE_AREAS=" | export LBX2GO_ARCHIVE_AREAS=" | ||
# This is for minidesktop builds and currently only adds firefox-esr language packs | # This is for minidesktop builds and currently only adds firefox-esr language packs | ||
- | #export LBX2GO_LANG=' | + | # export LBX2GO_LANG=' |
# This is to optimize squashfs size, based on a suggestion by intrigeri from the TAILS team | # This is to optimize squashfs size, based on a suggestion by intrigeri from the TAILS team | ||
Line 145: | Line 159: | ||
# This patches the squashfs file into the initrd. Only parsed when image type " | # This patches the squashfs file into the initrd. Only parsed when image type " | ||
# Will require boot parameter live-media=/ | # Will require boot parameter live-media=/ | ||
- | # Both TFTP client and TFTP server must support file transfers >32MB for this to work, if you want to deploy this initrd via TFTP, | + | # Both TFTP client and TFTP server must support file transfers >32MB for this to work, if you want to deploy this initrd via TFTP, |
# so e.g. atftpd will not work - tftpd-hpa, however, seems to have no problem with larger files. | # so e.g. atftpd will not work - tftpd-hpa, however, seems to have no problem with larger files. | ||
# When using iPXE, you can use http instead of TFTP. | # When using iPXE, you can use http instead of TFTP. | ||
Line 155: | Line 169: | ||
# export LBX2GO_IMAGETYPE=' | # export LBX2GO_IMAGETYPE=' | ||
# to create an iso image that can also be dd'ed to USB media: | # to create an iso image that can also be dd'ed to USB media: | ||
- | #export LBX2GO_IMAGETYPE=' | + | # export LBX2GO_IMAGETYPE=' |
# to create a netboot-image: | # to create a netboot-image: | ||
export LBX2GO_IMAGETYPE=' | export LBX2GO_IMAGETYPE=' |