Commit Graph

268 Commits

Author SHA1 Message Date
Joshua Boniface ee89c0f5ad Convert preseed to supplemental package list
Converts the option that the preseed file gives into a supplemental
package list by default to avoid accidentally overwriting required
packages.

Also add ipmitool to the supplemental packages list.
2023-09-01 15:41:57 -04:00
Joshua Boniface d4640df3ce Add additional consoles to initial GRUB 2023-09-01 15:41:57 -04:00
Joshua Boniface 2e7c2071b5 Remove extra sleep 2023-09-01 15:41:57 -04:00
Joshua Boniface f5773eb2d7 Remove respawn and promote skip_blockcheck
1. Remove the respawning and replace with a restart, since it never
worked properly. Also add a "DONE" flag to prevent repeated triggering
during cleanup.

2. Promote the skip_blockcheck to a requested configuration item and a
fully-featured key in the tftp preseed file.
2023-09-01 15:41:57 -04:00
Joshua Boniface 23834a2c61 Lower ethdevice-timeout to 300s
With the auto-reboot implemented waiting this long is not required.
2023-09-01 15:41:57 -04:00
Joshua Boniface 9af47557f1 Use more reliable grep method 2023-09-01 15:41:57 -04:00
Joshua Boniface 4a43285ae2 Add interactive shell too 2023-09-01 15:41:57 -04:00
Joshua Boniface 8b45bbabae Fix bad grep 2023-09-01 15:41:57 -04:00
Joshua Boniface fafe47b79b Fix panic spawning shell 2023-09-01 15:41:57 -04:00
Joshua Boniface 7026ad29d2 Fix missing test command 2023-09-01 15:41:57 -04:00
Joshua Boniface cb729afd85 Correct location of remove-root-pw.sh 2023-09-01 15:41:57 -04:00
Joshua Boniface e2072a4979 Fix typo in remove-root-pw script 2023-09-01 15:41:57 -04:00
Joshua Boniface d6c1c8f38a Improve TTY locking
Prefer serial consoles to TTYs, and present a timeout on graphical TTYs.
2023-09-01 15:41:57 -04:00
Joshua Boniface c8f1d853a0 Move to template format instead of cat-EOF
Simplifies the scripts and adds the ability to easily and cleanly change
the contents of these files without dealing with escape characters, etc.
2023-09-01 15:41:57 -04:00
Joshua Boniface cf42c366e0 Redirect output to stdout 2023-09-01 15:41:57 -04:00
Joshua Boniface e6aa738a7d Remove serial console from installer boot cmdline
Having two consoles causes problems, so just remove it.
2023-09-01 15:41:57 -04:00
Joshua Boniface afc125bf83 Output DD results 2023-09-01 15:41:57 -04:00
Joshua Boniface df9b6e4dc6 Bump ethdevice-timeout to 600s
It seems that this can time out if dnsmasq is already sending a TFTP
file. To prevent this just bump up the timeout to 10 minutes.
2023-09-01 15:41:57 -04:00
Joshua Boniface d8e08ac5ef Complete implementation of seed install
Some fixed decisions were made, namely that bond0 would be created by
the installer from "all other interfaces" to facilitate easy
provisioning.
2023-09-01 15:41:57 -04:00
Joshua Boniface 8de0b4541a Add collision detection 2023-09-01 15:41:57 -04:00
Joshua Boniface 8dd16310b7 Fix package lists for bullseye 2023-09-01 15:41:57 -04:00
Joshua Boniface eccba97db0 Improve log messages 2023-09-01 15:41:57 -04:00
Joshua Boniface de179d2b65 Fix bad variable name 2023-09-01 15:41:56 -04:00
Joshua Boniface 037d81fb9d Add dosfstools to package list 2023-09-01 15:41:56 -04:00
Joshua Boniface 65b96a3b1b Optimize install.sh
1. Fix borked logfile
2. Exclude systemd-timesyncd for bullseye installs
3. Optimize block zeroing
4. Add some missing yes| in lvcreate/mkfs
2023-09-01 15:41:56 -04:00
Joshua Boniface 3707202c5e Improve preseeding config 2023-09-01 15:41:56 -04:00
Joshua Boniface 924ee347d2 Finish up seed install 2023-09-01 15:41:56 -04:00
Joshua Boniface 0dcb39a2f5 Work on modular installer 2023-09-01 15:41:56 -04:00
Joshua Boniface b3d2580eeb Fix destination host dir 2023-09-01 15:41:56 -04:00
Joshua Boniface ae6bfb974c Fix tabs 2023-09-01 15:41:56 -04:00
Joshua Boniface 023463574c Improve logging and messages 2023-09-01 15:41:56 -04:00
Joshua Boniface 976f5e444a Fix bad option 2023-09-01 15:41:56 -04:00
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 818f6a636d Add buildpxe.sh framework
Adds a script to set up a PXE image directory for the PVC installer.
Provides an alternative to the ISO for automating deploys in a
controlled, PXE-based environment.
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 246562cb65 Revamp header into date 2023-09-01 15:41:56 -04:00
Joshua Boniface dd93f25a16 Ignore PXE artifacts 2023-09-01 15:41:56 -04:00
Joshua Boniface 87e2503dc0 Merge pull request #4 from parallelvirtualcluster/joshuaboniface-patch-1 2023-09-01 15:41:56 -04:00
Joshua Boniface d2f67062ed Merge pull request #3 from parallelvirtualcluster/joshuaboniface-patch-1 2023-09-01 15:41:56 -04:00
Joshua Boniface 769e19dae9 Enhance warning message 2023-09-01 15:41:56 -04:00
Joshua Boniface c61847f7c9 Adjust final messages 2023-09-01 15:41:56 -04:00
Joshua Boniface c7b8892ede Add additional details to README document 2023-09-01 15:41:56 -04:00
Joshua Boniface 552062c9a1 Add wait for networking to be ready 2023-09-01 15:41:56 -04:00
Joshua Boniface 736e1e3a83 Add success messages to wget lookups 2023-09-01 15:41:56 -04:00
Joshua Boniface d5a4cf7397 Remove per-distro stuff 2023-09-01 15:41:56 -04:00
Joshua Boniface ec809157f8 Add per-release packages 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 ee98ed1fe7 Fix bugs and improve messages 2023-09-01 15:41:55 -04:00
Joshua Boniface 73c6434f68 Add support for alternate Debian mirrors and rels 2023-09-01 15:41:55 -04:00
Joshua Boniface b3b6168873 Reformat notes and tweak base disk size again
Allow ~30GB disks to be used, since these are rare and 32GB is a common
SD card/MMC size.
2023-09-01 15:41:55 -04:00