Commit Graph

51 Commits

Author SHA1 Message Date
Joshua Boniface 0dfedda8d9 Improve option handling errors
The getopts framework just sucks for this, so do it manually.
2023-09-01 15:41:56 -04:00
Joshua Boniface f635e7010c Replace old buildiso.sh with live-build script
The old script was cumbersome and complex. Replace it with a script that
leverages the Debian live-build (lb) framework to simplify the script
and configuration as well as minimize sprawl in the final image (~40MB
savings).
2023-09-01 15:41:56 -04:00
Joshua Boniface bf8bf11ef7 Add better messages to indicate skipping 2023-09-01 15:41:56 -04:00
Joshua Boniface 8ef32fe5fa Add help for username 2023-09-01 15:41:55 -04:00
Joshua Boniface baac207e10 Fix ordering of help options 2023-09-01 15:41:55 -04:00
Joshua Boniface ae83721be9 Allow customizing the deployment username
Defaulted to 'deploy' but should be overrideable.
2023-09-01 15:41:55 -04:00
Joshua Boniface 284dbad37b Add support for vLANs in installer 2023-09-01 15:41:55 -04:00
Joshua Boniface 2dae04ab2a Add some additional supplemental packages (fw) 2023-09-01 15:41:55 -04:00
Joshua Boniface b9768d98fd Handle failing to bind mount 2023-09-01 15:41:55 -04:00
Joshua Boniface cc7b0047c4 Use local archives dir for debootstrapping 2023-09-01 15:41:55 -04:00
Joshua Boniface 4cf98e06a7 QOL improvements to scripts and script 2023-09-01 15:41:55 -04:00
Joshua Boniface a2cb5a6fec Correct issues with isolinux boot 2023-09-01 15:41:55 -04:00
Joshua Boniface fb6f346376 Conveniently print all fails at once 2023-09-01 15:41:55 -04:00
Joshua Boniface e5a60f56d4 Ensure resolv.conf is set too 2023-09-01 15:41:54 -04:00
Joshua Boniface af40944ed6 Add cacertificates to live ISO package list 2023-09-01 15:41:54 -04:00
Joshua Boniface 63d79e6d82 Fix missing semicolon 2023-09-01 15:41:54 -04:00
Joshua Boniface 43e63b3571 Use the active standard ISO image dynamic 2023-09-01 15:41:54 -04:00
Joshua Boniface 8368a302a7 Remove empty ISOs if download fails 2023-09-01 15:41:54 -04:00
Joshua Boniface 7ad7a2d819 Remove apt-cacher setup 2023-09-01 15:41:54 -04:00
Joshua Boniface 3d4e22e187 Allow last-minute editing of interfaces file
Allow this to happen before the installer completes, rather than once
the system starts up.
2023-09-01 15:41:54 -04:00
Joshua Boniface 4a4774a9bb Ensure isolinux is installed 2023-09-01 15:41:54 -04:00
Joshua Boniface cb3cb4a706 Reimplement initial fail 2023-09-01 15:41:54 -04:00
Joshua Boniface 02a5507523 Revert "Set -noappend to mksquashfs just in case"
This reverts commit e3d0a4bf5d.
2023-09-01 15:41:54 -04:00
Joshua Boniface cfd9f9c75e Add date to ISO file name 2023-09-01 15:41:54 -04:00
Joshua Boniface 2e746231cc Set -noappend to mksquashfs just in case 2023-09-01 15:41:54 -04:00
Joshua Boniface 412aa161df Forcibly replace squashfs if it exists 2023-09-01 15:41:53 -04:00
Joshua Boniface 72b773c778 Correct conditional for archived squashfs 2023-09-01 15:41:53 -04:00
Joshua Boniface 59455e027a Theme the EFI Grub menu 2023-09-01 15:41:53 -04:00
Joshua Boniface a2b257ef9e Use amd64 EFI GRUB explicitly 2023-09-01 15:41:53 -04:00
Joshua Boniface ae6ed05b18 Flip the cached squashfs arg around 2023-09-01 15:41:53 -04:00
Joshua Boniface 2a72e0a001 Reenable GRUB EFI mode 2023-09-01 15:41:53 -04:00
Joshua Boniface d4fe0bb005 Allow ignoring squashfs artifact 2023-09-01 15:41:53 -04:00
Joshua Boniface b5edeb9b1d Add missing artifacts path on ISO 2023-09-01 15:41:53 -04:00
Joshua Boniface 9fd1359bc9 Cleanup a bit more 2023-09-01 15:41:53 -04:00
Joshua Boniface c0df5935d2 Further tweaks and improvements 2023-09-01 15:41:53 -04:00
Joshua Boniface d3ab0c5f7d Make name selection dynamic 2023-09-01 15:41:53 -04:00
Joshua Boniface cf669b52c2 Move autogen'd files to artifacts dir 2023-09-01 15:41:53 -04:00
Joshua Boniface 898fb28cb8 Use sudo for the copy 2023-09-01 15:41:53 -04:00
Joshua Boniface c7b3dfff4c Include downloading of LiveISO too 2023-09-01 15:41:53 -04:00
Joshua Boniface 422fb3cdcd Reverse order of squashfs creation/archive 2023-09-01 15:41:53 -04:00
Joshua Boniface a2b40021d0 Replace isolinux.cfg instead of menu.cfg 2023-09-01 15:41:53 -04:00
Joshua Boniface d9f43c47c4 Improve menu and generation 2023-09-01 15:41:53 -04:00
Joshua Boniface 443e950c31 Remove Grub EFI 2023-09-01 15:41:53 -04:00
Joshua Boniface 0a00d29b90 Create boot and ESP partitions 2023-09-01 15:41:53 -04:00
Joshua Boniface 4a8a3e24ab Fix boot issue on liveboot 2023-09-01 15:41:53 -04:00
Joshua Boniface efd30c58b1 Just rename don't copy 2023-09-01 15:41:53 -04:00
Joshua Boniface e58c58a76b Handle kernel properly 2023-09-01 15:41:53 -04:00
Joshua Boniface 47d9048de3 Upgrade Liveimage kernel 2023-09-01 15:41:53 -04:00
Joshua Boniface 0c624208c7 Clean up and add error handling 2023-09-01 15:41:53 -04:00
Joshua Boniface 01d0a5e0f8 Tweak some wording and free some space 2023-09-01 15:41:53 -04:00