Commit Graph

171 Commits

Author SHA1 Message Date
Joshua Boniface e3f9ee8945 Add workaround if keys fail to fetch 2021-12-13 01:25:59 -05:00
Joshua Boniface 1e1426df13 Add addpkglist to prompt options and use apt-get 2021-12-12 23:37:52 -05:00
Joshua Boniface 62b06f9c1b Convert seed example to jinja2 and copy in
The pvcbootstrapd system will load this template and write it out for
each host. But keep the nice comments for human-readable use just in
case.
2021-12-12 23:28:00 -05:00
Joshua Boniface 483068c38c 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.
2021-12-12 23:27:01 -05:00
Joshua Boniface dcc608d090 Add additional consoles to initial GRUB 2021-12-12 23:10:59 -05:00
Joshua Boniface 5924a78edc Remove extra sleep 2021-12-12 23:09:47 -05:00
Joshua Boniface 03a01d563c 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.
2021-12-12 23:06:10 -05:00
Joshua Boniface d9c527d72c Lower ethdevice-timeout to 300s
With the auto-reboot implemented waiting this long is not required.
2021-12-12 22:28:24 -05:00
Joshua Boniface 7b3f0e5f0d Use more reliable grep method 2021-12-12 20:18:47 -05:00
Joshua Boniface 0767984729 Add interactive shell too 2021-12-12 20:05:11 -05:00
Joshua Boniface 19b96b4ade Fix bad grep 2021-12-12 19:50:00 -05:00
Joshua Boniface d17073dc7f Fix panic spawning shell 2021-12-12 19:43:43 -05:00
Joshua Boniface 64b36c0c67 Fix missing test command 2021-12-12 18:49:51 -05:00
Joshua Boniface 337fe22b29 Correct location of remove-root-pw.sh 2021-12-12 18:36:10 -05:00
Joshua Boniface 0741e5ea6b Fix typo in remove-root-pw script 2021-12-12 18:35:23 -05:00
Joshua Boniface 5642779dbf Improve TTY locking
Prefer serial consoles to TTYs, and present a timeout on graphical TTYs.
2021-12-12 16:44:46 -05:00
Joshua Boniface 0f52de5b66 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.
2021-12-12 16:44:39 -05:00
Joshua Boniface 4ccce61aab Redirect output to stdout 2021-12-12 01:17:25 -05:00
Joshua Boniface 32a9f7a9af Remove serial console from installer boot cmdline
Having two consoles causes problems, so just remove it.
2021-12-12 01:04:08 -05:00
Joshua Boniface 0708f286db Output DD results 2021-12-12 00:49:30 -05:00
Joshua Boniface 87011ff63b 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.
2021-12-11 22:39:26 -05:00
Joshua Boniface 133d6fe994 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.
2021-12-11 18:48:26 -05:00
Joshua Boniface c1be2d316b Add collision detection 2021-12-06 23:50:08 -05:00
Joshua Boniface 2b60ea27dd Fix package lists for bullseye 2021-12-06 23:12:13 -05:00
Joshua Boniface 318449d55b Improve log messages 2021-12-06 15:06:43 -05:00
Joshua Boniface 56d0f90baf Fix bad variable name 2021-12-06 14:56:32 -05:00
Joshua Boniface 152e176bd6 Add dosfstools to package list 2021-12-06 13:54:02 -05:00
Joshua Boniface 2927f9f6ca 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
2021-12-06 13:52:35 -05:00
Joshua Boniface 24758a765b Improve preseeding config 2021-12-06 02:49:33 -05:00
Joshua Boniface cafcfca9d0 Finish up seed install 2021-12-06 01:13:11 -05:00
Joshua Boniface f8e2eb7395 Work on modular installer 2021-12-06 01:12:44 -05:00
Joshua Boniface 1cc74e4746 Fix destination host dir 2021-12-04 03:37:38 -05:00
Joshua Boniface 061832ec16 Fix tabs 2021-12-04 02:49:20 -05:00
Joshua Boniface 3fb93b8359 Improve logging and messages 2021-12-04 02:47:55 -05:00
Joshua Boniface 7e50efa9b9 Fix bad option 2021-12-04 02:40:32 -05:00
Joshua Boniface 30f9bbec95 Improve option handling errors
The getopts framework just sucks for this, so do it manually.
2021-12-04 02:39:49 -05:00
Joshua Boniface 252c543304 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.
2021-12-04 02:28:18 -05:00
Joshua Boniface f858d03ff9 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).
2021-12-04 02:19:13 -05:00
Joshua Boniface e3d3cbe6fa Revamp header into date 2021-12-04 02:18:58 -05:00
Joshua Boniface a2fae4dac6 Ignore PXE artifacts 2021-12-04 02:14:21 -05:00
Joshua Boniface e39a473c53
Merge pull request #4 from parallelvirtualcluster/joshuaboniface-patch-1 2021-10-29 20:15:41 -04:00
Joshua Boniface b5dacd8f02
Enhance warning message 2021-10-29 20:15:29 -04:00
Joshua Boniface 32d66e6b4c
Merge pull request #3 from parallelvirtualcluster/joshuaboniface-patch-1 2021-10-29 20:14:06 -04:00
Joshua Boniface 95cb3b8986
Add additional details to README document 2021-10-29 20:13:24 -04:00
Joshua Boniface df1acc5e80 Adjust final messages 2021-10-12 02:17:20 -04:00
Joshua Boniface c34167a01f Add wait for networking to be ready 2021-09-09 13:51:47 -04:00
Joshua Boniface ca9796ef51 Add success messages to wget lookups 2021-09-09 11:41:01 -04:00
Joshua Boniface b81945f233 Remove per-distro stuff 2021-09-08 17:02:02 -04:00
Joshua Boniface 2f1be77f27 Add per-release packages 2021-09-08 16:38:29 -04:00
Joshua Boniface d19d1554ac Add better messages to indicate skipping 2021-09-08 11:15:15 -04:00