This reduces the number of steps in the "First Boot" section that are
not related to the first boot.
Reported-by: Jonathan Dumont <JOduMonT>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
Use swapoff to ensure swap partitions are not mounted prior to
'sgdisk --zap-all'
Signed-off-by: Scott G. Ainsworth <scott@ainsworth.us>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
[Applied the change to Debian Buster; removed Ubuntu 16.04 and 18.04.]
Signed-off-by: Scott G. Ainsworth <scott@ainsworth.us>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
[Applied to Ubuntu 20.04 Raspberry Pi & Debian Buster.]
Update the getting started instructions for Ubuntu on a Raspberry Pi to
use the 20.04.3 LTS release.
Signed-off-by: Fernando Carolo <fcarolo@google.com>
A couple people have come by IRC having issues where the root cause was that they were stuck on the CDDL/GPL prompt from apt never rendering because their container runtime console wasn't being detected as dumb/noninteractive by apt, but wasn't capable of displaying the prompt.
So let's add a warning about that, shall we?
* 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>
* Add support for RHEL Root on ZFS
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* require cryptsetup.target before mounting swap
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* disable sshd
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* fedora 34; grub workaround
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* add manual redirect to new page
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* orphan page
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
* Remove `RHEL and CentOS` from index
Co-authored-by: George Melikov <mail@gmelikov.ru>
* Add support for Fedora Root on ZFS
* use /usr/sbin/zfs
* 2.0.5 is now available with support for latest kernel
* require cryptsetup.target before mounting swap
* disable sshd
* fedora redirect
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>
Update the getting started instructions for Ubuntu on a Raspberry Pi to
use the 20.04.2 LTS release. Add `-a` flag to the `wipefs` command to
make sure it will erase any filesystem header from previous use of the
SD card.
Signed-off-by: Fernando Carolo <fcarolo@google.com>
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>
It looks like I messed this up (for Debian, but not Ubuntu) in my
various changes. It is not necessary to do this before the chroot in
the normal install path, as it was done earlier. But it is something
that should be done before the chroot in the rescue path. I've now
made Debian match Ubuntu.
Fixes#141
Reported-by: Colm <colm@tuatha.org>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
There was already a note about ignoring a cryptsetup WARNING, but:
A) cryptsetup also prints an ERROR message, and
B) this also occurs at an earlier step.
Fixes#134
Signed-off-by: Richard Laager <rlaager@wiktel.com>
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>