This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
doc:howto:tce [2021/01/25 00:19] stefanbaur [Starting the Build] This is part two of the patch to create Images for the Raspberry Pi |
doc:howto:tce [2022/12/02 13:01] stefanbaur [Configuring the Build] added (u)efi notice |
||
---|---|---|---|
Line 45: | Line 45: | ||
# 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, | # 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:// | ||
Line 61: | Line 61: | ||
# 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=' |
+ | #export LBX2GO_CONFIG=' | ||
+ | export LBX2GO_CONFIG=' | ||
+ | #export LBX2GO_CONFIG=' | ||
# this one loosely corresponds to " | # this one loosely corresponds to " | ||
- | export LBX2GO_CONFIG=' | + | #export LBX2GO_CONFIG=' |
- | # NOTE: Add " | + | #export LBX2GO_CONFIG=' |
- | # NOTE: As of 2019-08-27, buster builds are only available via the github repo and for the feature/ | + | #export LBX2GO_CONFIG=' |
+ | #export LBX2GO_CONFIG=' | ||
+ | # NOTE: Add " | ||
+ | # | ||
+ | # add "-bullseye" | ||
# Select ONE of the following LBX2GO_ARCH lines and comment out the others | # Select ONE of the following LBX2GO_ARCH lines and comment out the others | ||
Line 72: | Line 79: | ||
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=' | ||
Line 81: | Line 88: | ||
# 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=" | ||
+ | export LBX2GO_BOOTAPPEND_LIVE=" | ||
if echo -e " | if echo -e " | ||
- | | + | LBX2GO_BOOTAPPEND_LIVE+=" |
- | export LBX2GO_BOOTAPPEND_LIVE | + | export LBX2GO_BOOTAPPEND_LIVE |
elif echo -e " | elif echo -e " | ||
- | | + | LBX2GO_BOOTAPPEND_LIVE+=' |
- | export LBX2GO_BOOTAPPEND_LIVE | + | export LBX2GO_BOOTAPPEND_LIVE |
fi | fi | ||
Line 102: | Line 110: | ||
elif [ -z " | elif [ -z " | ||
export LBX2GO_DEBVERSION=" | export LBX2GO_DEBVERSION=" | ||
+ | export LBX2GO_BOOTAPPEND_LIVE+=" | ||
+ | elif [ -z " | ||
+ | export LBX2GO_DEBVERSION=" | ||
export LBX2GO_BOOTAPPEND_LIVE+=" | export LBX2GO_BOOTAPPEND_LIVE+=" | ||
else | else | ||
Line 125: | Line 136: | ||
# These options are meant to reduce the image size. | # These options are meant to reduce the image size. | ||
# Feel free to adapt them after consulting "man lb_config" | # Feel free to adapt them after consulting "man lb_config" | ||
- | export LBX2GO_SPACE=' | + | # FIXME export LBX2GO_SPACE=' |
+ | export LBX2GO_SPACE=' | ||
| | ||
| | ||
Line 178: | Line 190: | ||
# 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 | ||
# note that this will permanently change / | # note that this will permanently change / | ||
+ | # | ||
+ | # | ||
if dpkg --print-architecture | grep -q ' | if dpkg --print-architecture | grep -q ' | ||
- | | + | # on arm, these parameters must not be used; if they' |
- | if grep -q -- '-Xbcj x86 -b 1024K -Xdict-size 1024K' / | + | if grep -q -- '-Xbcj x86 -b 1024K -Xdict-size 1024K' / |
- | apt install --reinstall live-build | + | apt install --reinstall live-build |
- | fi | + | fi |
+ | # feel free to experiment with these options, but be prepared for subtle breakage | ||
+ | #export MKSQUASHFS_OPTIONS=' | ||
+ | #export MKSQUASHFS_OPTIONS=' | ||
+ | #export MKSQUASHFS_OPTIONS=' | ||
+ | export MKSQUASHFS_OPTIONS='' | ||
else | else | ||
- | sed -i -e 's#MKSQUASHFS_OPTIONS=" | + | export |
fi | fi | ||
Line 194: | Line 213: | ||
# 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. | ||
# This is especially helpful if you want to netboot via http and cannot use the server' | # This is especially helpful if you want to netboot via http and cannot use the server' | ||
- | export LBX2GO_NOSQUASHFS=" | + | #export LBX2GO_NOSQUASHFS=" |
# Select ONE of the following LBX2GO_IMAGETYPE lines and comment out the others | # Select ONE of the following LBX2GO_IMAGETYPE lines and comment out the others | ||
# to create an iso image: | # to create an iso image: | ||
- | # 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=' |
# /!\ the options below are NOT RECOMMENDED unless you use live-build from Debian Buster /!\ | # /!\ the options below are NOT RECOMMENDED unless you use live-build from Debian Buster /!\ | ||
- | # to create an image that can be written to a hard disk (for older live-build versions, this | + | # (Debian 10) or newer to create an image that can be written to a hard disk (for older |
- | # always results in a "build failed" | + | # live-build versions, this always results in a "build failed" |
- | # live-build from Buster and things will work): | + | # might have worked - use live-build from Buster |
- | # export LBX2GO_IMAGETYPE=' | + | #export LBX2GO_IMAGETYPE=' |
+ | ## This might be required for hdd builds, especially for (u)efi | ||
+ | #export LBX2GO_BOOTLOADER=" | ||
# to create a tar file only (seems to be broken in older live-build versions - Buster works): | # to create a tar file only (seems to be broken in older live-build versions - Buster works): | ||
- | # export LBX2GO_IMAGETYPE=' | + | #export LBX2GO_IMAGETYPE=' |
# This is part of our experimental ARM support | # This is part of our experimental ARM support | ||
if echo " | if echo " | ||
- | | + | # enforce hdd image for arm at the moment (might need to support netboot later on too) |
- | if ! [ " | + | if ! [ " |
- | echo " | + | |
- | LBX2GO_IMAGETYPE=" | + | export |
- | fi | + | fi |
fi | fi | ||
if [ " | if [ " | ||
- | LBX2GO_DEFAULTS+=" | + | |
fi | fi | ||
</ | </ | ||
Line 948: | Line 969: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' |