Without the double quotes, the $DISK variable expands and will not
handle multi-disk correctly.
Co-authored-by: @baberlevi
Signed-off-by: Maurice Zhou <ja@apvc.uk>
Credit: @mdiepart from #282Closes#282#262
Fix variable export before chroot
Credit: @mdiepart from #282
remind user to enable multi-disk support
NixOS: handle installation failure wrt encrypted boot pool
Closes#279
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
When trying to execute this script, it fails because it doesn't move to the home directory. I think there's meant to be a `cd` after setting the `HOME` variable.
* Add support for NixOS
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* updated files for immutable root fs
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* update ssh key location
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* change initrd host key name
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* add missing -p switch
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* comments about SSH and encrypted bpool
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* backup hardware-configuration.nix file
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* clearer wording for backup
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* global useDHCP flag is deprecated
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* point user to configuration.nix
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fixes for systemd-autofs; network; typo
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* force command to return 0
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fix command to postMount
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fix mount command
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* escape $i
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* create mountpoints before booting
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* replace postDevice,preMount command
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* disable zfs-mount
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* generate machine-id
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* Let user know that SELinux will be re-enabled after reboot
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* compat with future releases: use zfs-dkms and newer repo
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* rm unused releasever option
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* let user aware of the ignorable errors
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* detailed explanations for errors during grub-menu generation
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* Build ZFS dkms module in installed system
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* switch to dkms package for better compatibility with kernels
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* add direct download links for live iso
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* rm zfs-fuse before install; mirrorlist
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* reformat notes
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* rm netconfig - networkmanager is enabled by default
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* load kernel module in live;
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* rm encrypted bpool: untested
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* use u=r,go= permission on key file
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fix typo
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* use bash shell
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* suggest clean the disks
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* add grub-menu auto update
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* monitor kernel-core pkg
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* copyright 2021
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fix kernel var detection
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* read-only cache file
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* replace zfs-mount.service with zfs-mount-generator
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* notes for mount and POSIX-compliant
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* hard-code kernel version
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fix chroot variable
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fix grub cfg
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fix grub
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* missing comment
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* comments
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
fix indentation
GRUB 2.06 does not work with LUKS2
use separate file in /etc/profile.d
Use systemd-firstboot to configure locales, tz, etc
instructions for non-interactive system-firstboot
systemd-firstboot has bugs for setting root password
Signed-off-by: Maurice Zhou <ja@apvc.uk>
Use ${DISK}-swap for dm name
Update archlinux live image to May 2021
Other minor improvements
reusable command for mirroring ESP
use glob for initrd keys
apply hostname to live system; use wildcard for network config
separate persistent swap and hibernation
secureboot; temp esp partition
capital letters
Secure Boot needs to be re-enabled
wording: save and reboot
wording, spurious white space
double sharp sign for comment
updates for GRUB tips
reinstall GRUB after entering system
Signed-off-by: Maurice Zhou <ja@apvc.uk>
do not use /dev/sda as example
fix formatting; add notes
update info regarding encryption
use internal links; tweak indentation
other kernel variants
install sudo before editing /etc/sudoers
use colon
use mkinitcpio for initrd generation
only use ~/.local/bin if exist
dependencies for building site
Signed-off-by: Maurice Zhou <ja@apvc.uk>
Arch: Ignore kernel updates with zfs package
Arch Linux: Notes on single disk bash array and EFI system partition
Signed-off-by: Maurice Zhou <ja@apvc.uk>
package; drop Artix Linux
Arch Linux: index.rst punctuation
Arch Linux: Boot pool encryption key must not be in child dataset
Arch Linux: delete backup after restoration
Remove trailing blanks
Move topology spec above pool creation
Arch Linux: Reintroduce INST_UUID
Arch Linux: secure permissions for key file
Signed-off-by: Maurice Zhou <ja@apvc.uk>
index:
Numbered steps
Arch guide:
Reduce RAM requirement to 2G
March 2021 live image build
Use `pacman -S --needed` to skip reinstalling up-to-date packages
Use "Xonzfs" hostname instead of "localhost"
Remove pool encryption tips: Not relevant
Tip for encrypting boot pool
Add archzfs-testing repo; but commented out
Fix find-root-pool-name-in-grub link
Add missing steps in LUKS bpool
Warn about bricked motherboard for Secure Boot
Remove INST_UUID INST_MNT
Artix guide:
mostly same as above
I have tested the guide with a VM,
including LUKS bpool and hibernation section.
Signed-off-by: Maurice Zhou <ja@apvc.uk>
Arch Linux Root on ZFS: Encrypt boot pool with LUKS
Typo fixes; tweaks
Add Secure Boot
Secure Boot key enrollment differs
Secure Boot: rm HP laptop ref
Strictly follow manu. instructions. I bricked my EliteBook 820 G2 with KeyTool.efi
Example Secure Boot customization links
Back up Secure Boot signing keys
Secure Boot: Add link to bricked motherboard
Replace Secure Boot with a link; out of scope
Signed-off-by: Maurice Zhou <ja@apvc.uk>
The previous approach to installation is: try this easy one first, and
if it fails, try the hard one.
This commit streamlines the installation experience by minimizing
references to such procedures.
This commit also removes verbose comments from Root on ZFS installation
guides.
As the upstream has fixed glibc, its section is also removed.
Signed-off-by: Maurice Zhou <ja@apvc.uk>
We were getting errors about failing to parse some blocks as "sh"
because they weren't.
I made one small textual change when cleaning this up.
Signed-off-by: Richard Laager <rlaager@wiktel.com>