Commit Graph

319 Commits

Author SHA1 Message Date
ne9z
d1a20453b6 archlinux liveiso: sept 2021 update (#196)
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-09-06 20:49:11 +03:00
ne9z
a1f68c37e0 Add support for NixOS + Fedora, Arch, RH minor changes (#195)
* 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>
2021-09-06 20:48:50 +03:00
ne9z
f40d19a2c5 Multiple fixes for Root on ZFS guide (#191)
* 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>
2021-08-28 23:07:35 +03:00
Maurice Zhou
6fcf8e76be Fedora: create bpool with compatibility property
update Arch Linux live loader entries

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-08-10 11:38:30 +03:00
Maurice Zhou
5717d7bef7 rm refs to arch
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-08-06 23:33:36 +03:00
Maurice Zhou
ae7c5d19f4 Fixes for Fedora; support Rocky Linux Live ISO
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-08-06 23:33:36 +03:00
Maurice Zhou
9261cfb4f5 GRUB menu need to be regenerated after kernel update
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-08-04 12:05:30 +03:00
ne9z
bdb85fc137 Add support for RHEL Root on ZFS (#180)
* 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>
2021-08-03 17:55:33 +03:00
ne9z
6a60717816 Arch Linux: August 2021 update (#185)
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-08-03 17:44:45 +03:00
ne9z
de588ca3d3 Add Fedora Root on ZFS support (#177)
* 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>
2021-08-03 17:42:08 +03:00
Tony Hutter
e121b1422e Missed one small Centos 8.3 -> 8.4 change 2021-06-23 14:53:34 -07:00
Tony Hutter
b90c76e543 Add links to Centos zfs-release.el8_4.*.rpms 2021-06-23 14:52:44 -07:00
Maurice Zhou
fb2317eea2 June-2021 update
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>
2021-06-20 16:47:36 -05:00
oliverpool
3ffd0fb421 Available typo 2021-05-27 14:13:40 -05:00
ne9z
eae172d920 move to libera.chat (#167)
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-05-26 14:14:57 -07:00
Maurice Zhou
99b06be59a Notes for encryption; direct link for Live ISO; striped vdev topology;
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-05-20 00:17:37 -05:00
Maurice Zhou
ff20f0b5d7 Move long code pieces to separate files
Formatting fixes
separate files

Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-05-14 17:37:07 -05:00
Maurice Zhou
578f2901a7 GRUB boot live ISO
customize esp, bpool, swap, reserve size
customize previously hard-coded '/sys/'
add INST_ID to chroot variables
append INST_ID to zfs key name

Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-05-10 18:52:30 -05:00
Maurice Zhou
16cb298acf Examples for GRUB $prefix and $root
fix "efibootmgr -d" argument

dont set hostname in live environment

Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-05-04 02:53:12 -05:00
Fernando Carolo
fd48b2641f Update instructions for Ubuntu on Raspberry Pi for 20.04.2 release.
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>
2021-05-04 00:49:12 -05:00
Maurice Zhou
d022e79773 fix indentation; remove spurious white space
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-05-04 00:05:52 -05:00
Maurice Zhou
1fd8de8b18 Add hibernation instructions
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>
2021-05-04 00:05:52 -05:00
Tony Hutter
45d984ebdb Add Fedora 34 http link in markup 2021-04-27 09:21:22 -07:00
Tony Hutter
ba4dfc56fc Add Fedora 34 links, remove Fedora 31 2021-04-27 09:14:54 -07:00
Maurice Zhou
7662c0bcd3 Arch Linux: rm kernel check for DKMS
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-03-31 19:17:19 -05:00
Vlad Petrov
8a996a17a3 Arch Linux: Remove DropBear key limitation note
ed25519 support: https://github.com/mkj/dropbear/pull/91

Closes #131

Signed-off-by: Vlad Petrov <ejiek@mail.ru>
Signed-off-by: Maurice Zhou <ja@apvc.uk>
[more concise wording; fix rst formatting]
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-03-23 23:55:35 -05:00
Maurice Zhou
686f234fae Arch Linux: deprecate cachefile; import pools by scan
Arch Linux: install efibootmgr by default

Arch Linux: set zfs hook scan path

Arch Linux: import encrypted pool by mapper

Arch Linux: replace subjective "you" sentences

Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-03-17 17:56:40 -05:00
Richard Laager
17845ca703 Debian: Fix /run/lock code
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>
2021-03-15 18:32:01 -05:00
Richard Laager
30598b4875 Debian/Ubuntu: Improve the "Stop zed" message
Fixes #137
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-03-15 18:25:10 -05:00
Richard Laager
32954399c7 Debian/Ubuntu: Improve cryptsetup notes
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>
2021-03-15 18:23:05 -05:00
Maurice Zhou
284bedff91 Arch Linux: Add missing varable to chroot command; IgnorePkg fixes
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-03-14 12:53:23 -05:00
Maurice Zhou
06387ef96f Remove zfs-utils from IgnorePkg; Reorganize page
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-03-14 03:41:06 -05:00
Maurice Zhou
5b2a3ec69d Arch: Use mountpoint=none for containers
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>
2021-03-13 01:52:17 -06:00
Maurice Zhou
3d4931680d Arch Linux: Use bash array for multi-disk; Overview section for ZFS
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>
2021-03-12 22:11:33 -06:00
Maurice Zhou
91d28894a7 Arch Linux: Fix package installation command
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-03-09 00:17:33 -06:00
Maurice Zhou
e70da303a3 Arch Linux: Monthly Live image update; multiple fixes
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>
2021-03-07 17:22:18 -06:00
George Melikov
c6b0e597b2 SUSE docs: fix rst warnings and misc. fixes:
- rst warnings
- markdown-styled links
- empty lines with spaces

Signed-off-by: George Melikov <mail@gmelikov.ru>
2021-03-07 16:28:06 -06:00
Suleyman Poyraz
f006fe5729 openSUSE on ZFS has been written
This is a basic HOWTO page for OpenSUSE. This pages not official. This is a personal work represents how I do it.

* Added openSUSE on ZFS basic pages. For Leap and Tumbleweed this pages generated in lights of Debian and Ubuntu pages.

Signed-off-by: Suleyman Poyraz <zaryob.dev@gmail.com>
2021-03-04 04:09:14 -06:00
Maurice Zhou
c25037beb0 Arch Linux: Nest system datasets for more flexibility; encryption warning messages
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>
2021-02-28 18:52:09 -06:00
Maurice Zhou
13271f2467 Arch Linux: Multiple fixes
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-02-24 03:13:01 -06:00
Richard Laager
904e7253a2 Debian/Ubuntu: Remove /boot/efi automount option
This was mentioned in #99 and I added it as an alternative option.
However, it seems to break GRUB; see #107.  GRUB tries to parse
/proc/mounts and see a line like this:
  systemd-1 /boot/efi autofs ...
From there, it gets "systemd-1" as the device name, and breaks.

Closes #107

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-02-22 14:06:17 -06:00
Richard Laager
2551c34eda Debian/Ubuntu: Add a couple notes
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-02-21 17:22:04 -06:00
Richard Laager
c6ce3a9f6f Ubuntu/Debian: Fix bpool importing
We need the bpool to end up in zpool.cache.  For some reason, this is
not happening normally on Ubuntu 20.04.  I added the same steps to
Debian too, for good measure.

This was discussed in #120.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-02-21 17:21:46 -06:00
Richard Laager
5cefeef05e Ubuntu: Add note to ignore some errors
Closes #120
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-02-21 17:21:27 -06:00
Richard Laager
47751dff49 Ubuntu: Update to 20.04.2
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-02-21 16:49:24 -06:00
Richard Laager
0dd5093187 Debian/Ubuntu: Bring back creating /mnt/run/lock
This should fix issues with zed.

Closes #110
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-02-21 14:46:56 -06:00
Maurice Zhou
8e2cdf4f58 Arch Linux: Multiple fixes for Root on ZFS guides
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2021-02-20 03:20:13 -06:00
Richard Laager
6ab3d43847 Arch Linux: Remove alternative solutions
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>
2021-02-19 23:55:37 -06:00
Richard Laager
cbec1d359b Debian: Fix some bad whitespace 2021-02-19 23:44:08 -06:00
Richard Laager
339c9d3187 Arch Linux: Fix formatting
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>
2021-02-15 21:57:40 -06:00