Commit Graph
100 Commits
Author SHA1 Message Date
hygienic-books 9a89ce4f75 fix(os): Remove zfsbootmenu hook from ZFSBootMenu (#6)
While unintuitive this prevents us from having to
move this hook to the end of the HOOKS array.
If user wants SSH in ZBM we first append 'net' to
the HOOKS array then append 'dropbear'. At this
point the explicit 'zfsbootmenu' hook is no longer
last in line in 'HOOKS' array. This causes ZBM to
trip and to not correctly load net and dropbear.

Since the 'zfsbootmenu' hook is added implicitly
by generate-zbm we don't need the explicit hook
at all. Better remove it. This way it doesn't get in
the way.
2023-11-01 03:53:18 +01:00
hygienic-books 3cb68406ed feat(os): Add SSH to ZBM if requested by user (#6) 2023-11-01 03:49:46 +01:00
hygienic-books 33966071ce refactor(os): Simplify mkinitcpio.conf manipulation (#6) 2023-11-01 03:49:05 +01:00
hygienic-books 4e734330da feat(os): Add helper functions to manipulate HOOKS array (#6) 2023-11-01 03:47:34 +01:00
hygienic-books f1bab6bc60 refactor(os): Simplify extended regex (#6) 2023-11-01 03:05:43 +01:00
hygienic-books d1ad95dc76 docs(meta): Explain password requirement (#5) 2023-10-27 05:02:53 +02:00
hygienic-books 5d03799dae refactor(meta): Renumber functions (#9) 2023-10-27 04:24:40 +02:00
hygienic-books cf50632b6c feat(iso): Allow supplementary password/settings file (#9) 2023-10-27 04:23:11 +02:00
hygienic-books b83cce2aec docs(meta): Link to hook Git repos (#5) 2023-10-27 03:14:20 +02:00
hygienic-books edd104ed1c docs(meta): Adjust for UEFI/legacy BIOS difference (#5) 2023-10-27 02:49:03 +02:00
hygienic-books 9f0f19355e docs(iso): Master Boot Record capitalized (#5) 2023-10-27 02:15:46 +02:00
hygienic-books 0b3f5b75dd docs(iso): EFI System Partition capitalized (#5) 2023-10-27 02:14:36 +02:00
hygienic-books 04f206129f docs(iso): Typo (#5) 2023-10-27 02:12:36 +02:00
hygienic-books e42e92874e docs(iso): Explain UEFI/legacy BIOS reqirements (#5) 2023-10-27 02:12:09 +02:00
hygienic-books 56dc2f85a6 docs(iso): Homogenize MBR partition type codes (#5) 2023-10-27 02:11:27 +02:00
hygienic-books a00b8e8009 refactor(meta): Update lsblk UEFI/GPT output (#5) 2023-10-27 01:55:35 +02:00
hygienic-books 844f574e2d refactor(meta): Renumber functions (#5) 2023-10-27 01:47:53 +02:00
hygienic-books b0842ac9ba refactor(zbm): ZBM image names are now static, no need to regen UEFI boot entries (#5) 2023-10-27 01:46:56 +02:00
hygienic-books 03ed6e076d fix(zbm): Use stub file, not its parent directory for image rebuilds (#5) 2023-10-27 01:43:20 +02:00
hygienic-books b5666493f1 feat(zbm): Add pacman hook to auto-regen ZBM image files after package upgrade (#5) 2023-10-27 01:41:19 +02:00
hygienic-books 81a7fcd64c fix(zbm): ZBM now comes with an EFI stub loader file, we use that (#5) 2023-10-27 00:23:33 +02:00
hygienic-books a0a05b60d1 fix(os): For BIOS/syslinux hook add rsync dependency (#5) 2023-10-26 03:04:37 +02:00
hygienic-books 5f98a971ec fix(os): Specify maintenance instructions for UEFI/BIOS (#5) 2023-10-26 03:02:34 +02:00
hygienic-books 61c220afd7 feat(os): Add pacman hook to regen syslinux on upgrade (#5) 2023-10-26 02:32:26 +02:00
hygienic-books 33e7498529 fix(iso): export vars we'll be needing inside a subshell (#7) 2023-10-23 23:53:11 +02:00
hygienic-books d059cb6ae0 fix(iso): Try and improve mirrorlist handling (#7) 2023-10-23 03:02:23 +02:00
hygienic-books e3d5f2b939 fix(iso): Try and improve mirrorlist handling (#7) 2023-10-23 02:52:10 +02:00
hygienic-books 615b8c0e95 fix(iso): Find zfs partition on legacy BIOS machine (#7) 2023-10-23 02:28:01 +02:00
hygienic-books d685431684 feat(iso): Use jq only after it's installed (#7) 2023-10-23 02:16:02 +02:00
hygienic-books 2f41de67c6 feat(os): Finalize and umount on legacy BIOS machine (#7) 2023-10-23 02:05:25 +02:00
hygienic-books 84266e66cf feat(os): Create syslinux boot loader for legacy BIOS machine (#7) 2023-10-23 02:01:36 +02:00
hygienic-books a654f1ad14 feat(iso): Mount drives on legacy BIOS machine (#7) 2023-10-23 01:18:38 +02:00
hygienic-books 78053e813a feat(iso): Select correct partition for zpool on a legacy BIOS machine (#7) 2023-10-23 01:01:18 +02:00
hygienic-books 3eee3cbe6b feat(iso): Crudely detect BIOS vs. UEFI intent (#7) 2023-10-23 00:46:15 +02:00
hygienic-books 73001c8e95 docs(iso): Differentiate between UEFI and legacy BIOS (#7) 2023-10-23 00:08:27 +02:00
hygienic-books ffa322afdd refactor(iso): Fewer packages needed in ISO (#7) 2023-10-22 16:35:49 +02:00
hygienic-books 4e795c9cb7 docs(zfs): Export zpool when done working on it (#3) 2023-10-22 16:04:43 +02:00
hygienic-books 2e39075273 docs(zfs): Fewer single quotes (#3) 2023-10-22 15:50:45 +02:00
hygienic-books 4dab010efd docs(zfs): Export zpool when done working on it (#3) 2023-10-22 15:48:33 +02:00
hygienic-books 1a138068d1 refactor(zbm): No ZBM image versioning beyond a main and a backup file (#3) 2023-10-22 15:47:24 +02:00
hygienic-books 7133883a5e docs(zfs): Explain how to mount externally (#3) 2023-10-22 15:29:46 +02:00
hygienic-books ae00207947 refactor(zbm): Point to chroot (#3) 2023-10-22 15:26:50 +02:00
hygienic-books 108883fd11 docs(meta): Update lsblk output (#3) 2023-10-22 14:48:46 +02:00
hygienic-books cc6e17f06c fix(zbm): Correctly set EFI loader paths (#3) 2023-10-22 14:42:24 +02:00
hygienic-books 214f82becf fix(zbm): Use a known good stub loader file (#3)
This works around https://github.com/zbm-dev/zfsbootmenu/issues/503
2023-10-22 14:41:46 +02:00
hygienic-books 0fa1564405 fix(zbm): We may want to actually run our ZBM postconf hook (#3) 2023-10-22 03:22:12 +02:00
hygienic-books a9c9b3d788 refactor(iso): Typo (#3) 2023-10-22 02:00:16 +02:00
hygienic-books d3be536516 refactor(iso): Typo (#3) 2023-10-22 01:59:42 +02:00
hygienic-books 5d359a3f39 refactor(iso): No kernel updates in ISO (#3) 2023-10-22 01:52:33 +02:00
hygienic-books 290e659d29 refactor(zfs): Single-quote dataset options for consistency (#3) 2023-10-22 01:39:57 +02:00
hygienic-books f2213c2ec2 refactor(meta): Unify ISO name (#3) 2023-10-22 01:38:59 +02:00
hygienic-books 4645a44333 docs(meta): UPdate lsblk output (#3) 2023-10-22 01:38:05 +02:00
hygienic-books 863cee4322 refactor(meta): Remove trailing whitespace (#3) 2023-10-22 01:35:45 +02:00
hygienic-books 9d41aabb3e docs(meta): Start with a one-liner (#3) 2023-10-22 01:34:49 +02:00
hygienic-books d1407f00a9 refactor(meta): Update function numbering (#3) 2023-10-21 05:14:38 +02:00
hygienic-books 767e9c3b42 refactor(meta): Reorder functions (#3) 2023-10-21 05:09:25 +02:00
hygienic-books 915ded9c1b refactor(zbm): Update UEFI boot entries when images are done (#3) 2023-10-21 05:08:22 +02:00
hygienic-books 598b176ec6 refactor(zbm): Add ZBM postconf hook (#3)
We're adding this to our chroot after we've
generated a ZBM UEFI image file /without/
this hook script. It's meant to run only in our real
OS.
2023-10-21 05:07:02 +02:00
hygienic-books dcc3cf7d93 refactor(zbm): Streamline ZBM image creation (#3) 2023-10-21 05:05:17 +02:00
hygienic-books be63ed90ad refactor(zbm): We're not building in Arch Linux live CD ISO image (#3)
We don't need rsync anymore either since we
won't have to shuffle UEFI images around.
2023-10-21 05:03:09 +02:00
hygienic-books abffd08c1e feat(zbm): Add ZBM postconf hook to update UEFI bootnums (#3) 2023-10-21 04:48:11 +02:00
hygienic-books b36d4d33c3 refactor(os): pacman install in one go (#3) 2023-10-21 01:54:28 +02:00
hygienic-books b0c50f3323 refactor(os): Get ZFS modules installed before we need them (#3) 2023-10-21 01:25:22 +02:00
hygienic-books da88ec53a6 refactor(meta): ZFS installs in one go should now work (#3) 2023-10-21 00:58:23 +02:00
hygienic-books e92a22c005 refactor(meta): Quoting because we can (#3) 2023-10-21 00:57:57 +02:00
hygienic-books de4f3f2066 refactor(os): Do normal pacman installs, don't prepend keyring nor ZFS installs (#3) 2023-10-21 00:57:32 +02:00
hygienic-books c7e59ba0cb refactor(meta): Explain fd 3 logging and add more of it (#3) 2023-10-21 00:56:26 +02:00
hygienic-books b5c9ba4127 refactor(meta): Print key log output to stdout without capturing it in subshells (#3) 2023-10-21 00:34:13 +02:00
hygienic-books 40948ddbae refactor(meta): Print key log output to stdout without capturing it in subshells (#3) 2023-10-21 00:32:16 +02:00
hygienic-books 8566b41452 refactor(iso): Inform user partition's missing (#3) 2023-10-21 00:19:30 +02:00
hygienic-books e08697b7fa feat(os): Add a few /etc/motd pointers (#3) 2023-10-20 23:34:31 +02:00
hygienic-books 589d66d22b fix(zfs): Make sure root dataset cannot be mounted on accident (#3) 2023-10-20 22:47:05 +02:00
hygienic-books 61be86a820 fix(zbm): Update ESP paths to images, install both recovery and release (#3) 2023-10-20 22:34:19 +02:00
hygienic-books b34842434e refactor(os): Get ZFS modules installed before we need them (#3) 2023-10-20 22:17:13 +02:00
hygienic-books c46c78ba92 refactor(os): Set up locale before we do pacman work (#3) 2023-10-20 21:57:27 +02:00
hygienic-books 6c25b92113 fix(iso): Force-refresh pkg list, force-upgrade and downgrade pkgs to exactly match repos (#3) 2023-10-20 21:44:30 +02:00
hygienic-books 8ad2694dd4 fix(os): Mount chroot before building zfsbootmenu-efi-bin package (#3) 2023-10-20 19:26:05 +02:00
hygienic-books 362abe39fc fix(os): Install ZFS as a dependency before building zfsbootmenu-efi-bin package (#3) 2023-10-20 19:21:41 +02:00
hygienic-books c5e0216041 fix(os): Increase CoW space before we start (#3) 2023-10-20 19:19:35 +02:00
hygienic-books 9550eceaab feat(os): Replace manually building ZBM UEFI image with AUR package (#3) 2023-10-20 19:04:55 +02:00
hygienic-books 4cebd834de fix(os): Enable reflector.timer unit (#3) 2023-10-20 19:03:40 +02:00
hygienic-books 7a07b18156 fix(os): Write root password with specific --crypt-method (#3) 2023-10-20 19:01:59 +02:00
hygienic-books 7093621049 refactor(meta): Update function numbering (#3) 2023-10-20 18:58:25 +02:00
hygienic-books 503ab0b58b feat(os): Replace manually building ZBM UEFI image with AUR package (#3) 2023-10-20 18:48:50 +02:00
hygienic-books b63164f2ad feat(os): Give ourselves rsync in chroot (#3) 2023-10-20 18:30:58 +02:00
hygienic-books e9602491df feat(os): Install base-devel and git before we chroot (#3) 2023-10-20 17:43:46 +02:00
hygienic-books 148f930636 refactor(os): Allow AUR helper to replace itself (#3) 2023-10-20 16:30:29 +02:00
hygienic-books 66eb02ff7d refactor(meta): Add function numbering (#3) 2023-10-20 15:41:17 +02:00
hygienic-books 5cb1e6b1f2 refactor(os): Remind ourselves /etc/pacman.conf is ephemeral (#3) 2023-10-20 15:37:56 +02:00
hygienic-books 1ac2353d64 refactor(os): Default pacman to 20 parallel downloads (#3) 2023-10-20 15:35:17 +02:00
hygienic-books b9d9548929 docs(meta): Typo (#3) 2023-10-20 15:30:01 +02:00
hygienic-books 93932a522e docs(meta): Default to 512 MiB EFS instead of 100 MiB (#3)
Testing shows 100 MiB is a bit tight with a backup
UEFI image and future growth.
2023-10-20 15:29:40 +02:00
hygienic-books 6b12f31866 refactor(meta): Trim trailing whitespace (#3) 2023-10-20 15:26:22 +02:00
hygienic-books 2876f55e82 refactor(meta): Add function numbering (#3) 2023-10-20 15:24:39 +02:00
hygienic-books 29a5ede899 refactor(meta): Move we_are_changerooted function to top (#3) 2023-10-20 15:15:39 +02:00
hygienic-books 63974a2dff docs(os): Explain NetworkManager interaction (#3) 2023-05-30 22:56:18 +02:00
hygienic-books 310b180580 docs(zfs): Display mounted state in ZFS example (#3) 2023-05-16 14:12:56 +02:00
hygienic-books ec7931cb4c docs(zfs): Warn about nested datasets creation and auto-mounting (#3) 2023-05-16 14:11:14 +02:00
hygienic-books 1f70342aad fix(os): Only diff between DNS and static IP, keep the rest same (#3) 2023-04-29 17:11:55 +02:00
hygienic-books f0c75b735b docs(os): Typo (#3) 2023-03-27 23:19:58 +02:00