Commit Graph

60 Commits

Author SHA1 Message Date
Maurice Zhou
6be2e8c12e Fedora: downgrade to 37 and test zfs repo link
ZFS support for Fedora 38 is not yet available, see https://github.com/openzfs/zfs/issues/14725

Also enable blkdiscard by default.

Signed-off-by: Maurice Zhou <yuchen@apvc.uk>
2023-04-24 16:30:18 +03:00
Maurice Zhou
4fb5fb694f Alpine, Arch Linux, Fedora, RHEL, NixOS Root on ZFS guide: add CI/CD tests
Remove unmaintained Arch Linux guides.

Signed-off-by: Maurice Zhou <yuchen@apvc.uk>
2023-04-19 13:50:05 +03:00
Maurice Zhou
2d303ead82 Arch Linux: adjust mkinitcpio parameters
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2023-04-03 13:23:54 +03:00
Maurice Zhou
5b8c163e24 NixOS, Alpine Linux: mount datasets in Root on ZFS guide; immutable
root; GRUB update

Acknowledgement: @bjornstromberg
Closes #398

NixOS: remove NetworkManager by default, add note for enable

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2023-04-03 13:23:54 +03:00
Maurice Zhou
b6cf700f62 Update NixOS configuration, clean up RHEL, Fedora, Arch guide mount section
Closes #397

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2023-03-18 21:58:25 +03:00
Maurice Zhou
a69befb2ce Update Alpine, Arch, Fedora and RHEL root on ZFS guides
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2023-03-10 20:57:14 +03:00
Gergin Darakov
ef2be632e8 - Fix typo 2022-12-30 13:18:18 +03:00
Maurice Zhou
68eebfd5df Add double quotes to DISK=$DISK
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>
2022-09-23 21:49:09 +03:00
Maurice Zhou
b35065b4fc Alpine: Use ZFS for /boot, updated bootloader instructions
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2022-07-31 21:48:31 +03:00
Maurice Zhou
82988571d1 Root on ZFS: Fix broken links
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2022-07-27 15:38:33 +03:00
Maurice Zhou
2766cb7197 Updates and cleanup for Arch, RHEL, NixOS and Fedora
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2022-07-27 11:11:03 +03:00
Maurice Zhou
d9782f7877 NixOS: upgrade to 22.05, mail notification, procedure for system upgrade
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2022-06-19 14:23:05 +03:00
Maurice Zhou
0ff944c678 Fedora 36: bump version; backup bash input history for future reference
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2022-05-19 17:57:49 +03:00
Maurice Zhou
2aa4040743 Fedora & RHEL: fix slow loading mpt3sas.
Credit: @mdiepart from #282

Closes #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>
2022-03-19 13:23:22 +03:00
Maurice Zhou
4c2bb3a230 Add users optional home directory to fstab
Closes #267

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2022-02-15 18:09:30 +03:00
Maurice Zhou
b490d147c6 Arch Linux: add live iso instructions
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2022-01-31 20:07:46 +03:00
Maurice Zhou
4a74c075b9 RHEL: upgrade to 8.5; Fedora: upgrade to 35
RHEL/Fedora: add link to list of repositories

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-12-28 13:09:48 +03:00
Daniel Fabian
d57fef1d00 Add missing cd
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.
2021-12-11 00:17:01 +03:00
Maurice Zhou
1fa945ccc3 Fix: add missing shell script interpreter
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-12-03 18:15:57 +03:00
Maurice Zhou
8a396f32f7 GRUB: preliminary support for PBKDF2-only LUKS2
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-12-03 18:15:57 +03:00
ne9z
862c355d4e Fix /boot mounting and add notice for other keyboard layouts (#230)
* NixOS: add "X-mount.mkdir" mount option, fix unmounted /boot

Signed-off-by: Maurice Zhou <jasper@apvc.uk>

* add tips for keyboard layout support, closes #211

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-11-21 17:52:03 +03:00
Maurice Zhou
783877d147 Update build instructions in NixOS
various minor fixes; bump archlive to nov 2021

use dkms in live

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-11-04 18:28:09 +03:00
j5k
d8061ede68 Fix link 2021-10-11 17:14:52 +03:00
Maurice Zhou
89749e285f mention ne9z for pull requests
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-10-03 21:28:26 +03:00
Maurice Zhou
f121be16dc For maximum compatibility and redudancy; mirrored vdev
is now always used for boot pool

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-10-03 21:28:26 +03:00
Maurice Zhou
783f390aa6 update links to boot environment manager
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-10-03 13:32:44 +03:00
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
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
ne9z
6a60717816 Arch Linux: August 2021 update (#185)
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2021-08-03 17:44:45 +03: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
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
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
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