197 Commits

Author SHA1 Message Date
71f0a89dca Respawn instead of reboot if script fails 2021-12-15 00:10:37 -05:00
0ee8a1fdb7 Suppress useless output 2021-12-14 23:45:22 -05:00
1d0dd0fab7 Add blacklisting in installer 2021-12-14 19:29:23 -05:00
326c1dff5c Suppress output to stderr 2021-12-14 03:07:45 -05:00
bca019b247 Add blacklist config to preseed 2021-12-13 18:09:05 -05:00
66acf3fe17 Add module blacklisting to installer 2021-12-13 18:02:16 -05:00
75cb53362b Add noautogroup too
As per https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1318551
2021-12-13 17:53:25 -05:00
1f4c5e1118 Add blacklist of hpwdt to default cmdline 2021-12-13 17:50:53 -05:00
5e5b4db7ca Handle cancellation properly 2021-12-13 17:24:33 -05:00
c001769d1b Fix typo'd name 2021-12-13 16:57:41 -05:00
226ef3a039 Ensure other vgchange succeeds too 2021-12-13 16:45:27 -05:00
9892e06b94 Improve and move cleanup earlier 2021-12-13 16:44:31 -05:00
fa954988a9 Don't fail on initial blockdev stuff 2021-12-13 16:31:27 -05:00
d0af376e8c Add wipe warning 2021-12-13 16:05:48 -05:00
a73873f764 Be even more forceful with VGs 2021-12-13 16:04:23 -05:00
2ad3de479c Fix partition and console bugs 2021-12-13 15:41:31 -05:00
9a3274f598 Fix bad escapes 2021-12-13 15:15:45 -05:00
e18ad4c2e3 Ensure defaults are always set 2021-12-13 14:58:30 -05:00
a39f0d1aab Up fatal reboot timeout 2021-12-13 14:53:28 -05:00
0cc1e6b9ab Add filesystem selection and add BIOS boot part 2021-12-13 14:52:06 -05:00
ce1b8ac4f6 Allow pausing before failure reboot. 2021-12-13 14:09:21 -05:00
78af7006ed Add more robust removal of LVM on target
Should prevent strange failures to recreate LVM if a previous one
existed and no block zeroing is done.
2021-12-13 13:39:48 -05:00
100bd8c403 Add ACPI support to initial config 2021-12-13 12:42:48 -05:00
54b0cbd33c Fix incorrect echo statement 2021-12-13 02:51:28 -05:00
a3fd110b59 Add autoselected consoles to Grub config
Prevents having to pick a bunch, which can break if more than one serial
is present for example. Also automates this based on what the installer
has/detects as active.
2021-12-13 02:51:19 -05:00
d015489a83 Fix incorrect conditional for failures 2021-12-13 01:27:51 -05:00
e3f9ee8945 Add workaround if keys fail to fetch 2021-12-13 01:25:59 -05:00
1e1426df13 Add addpkglist to prompt options and use apt-get 2021-12-12 23:37:52 -05:00
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
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
dcc608d090 Add additional consoles to initial GRUB 2021-12-12 23:10:59 -05:00
5924a78edc Remove extra sleep 2021-12-12 23:09:47 -05:00
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
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
7b3f0e5f0d Use more reliable grep method 2021-12-12 20:18:47 -05:00
0767984729 Add interactive shell too 2021-12-12 20:05:11 -05:00
19b96b4ade Fix bad grep 2021-12-12 19:50:00 -05:00
d17073dc7f Fix panic spawning shell 2021-12-12 19:43:43 -05:00
64b36c0c67 Fix missing test command 2021-12-12 18:49:51 -05:00
337fe22b29 Correct location of remove-root-pw.sh 2021-12-12 18:36:10 -05:00
0741e5ea6b Fix typo in remove-root-pw script 2021-12-12 18:35:23 -05:00
5642779dbf Improve TTY locking
Prefer serial consoles to TTYs, and present a timeout on graphical TTYs.
2021-12-12 16:44:46 -05:00
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
4ccce61aab Redirect output to stdout 2021-12-12 01:17:25 -05:00
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
0708f286db Output DD results 2021-12-12 00:49:30 -05:00
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
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
c1be2d316b Add collision detection 2021-12-06 23:50:08 -05:00
2b60ea27dd Fix package lists for bullseye 2021-12-06 23:12:13 -05:00