141 Commits

Author SHA1 Message Date
Richard Laager
2efebdb5db Debian/Ubuntu: Mention blkdiscard
Inspired by PR #387

Co-authored-by: Maurice Zhou <ja@apvc.uk>
[The author of PR #387.]
2023-02-15 12:51:54 -06:00
Richard Laager
e51faf4e81 Ubuntu: Add wipefs to the instructions
This was present in the Debian instructions.  I don't know why we
wouldn't want it here too.
2023-02-15 12:51:54 -06:00
Richard Laager
33de2eef4b Debian/Ubuntu: Add a note about ZFS_INITRD_ADDITIONAL_DATASETS
Putting /etc on a separate dataset leads to a bad time.

Closes #356
2023-01-05 22:46:22 -06:00
sam-kleiner
233952e4e7 update partition sizes 2022-09-11 23:30:11 -05:00
Sam Kleiner
1a3b19f2e8 fix ubuntu 22.04 zfs on pi link 2022-09-11 23:30:11 -05:00
bajjer
f7aafbd853 Revise example to tune to the recordsize for rpool
Change the provided example to tune the ``recordsize`` to apply to the
root dataset when creating the rpool. See
https://github.com/openzfs/openzfs-docs/issues/345#issuecomment-1242657449

Closes #345
Closes #346

Signed-off-by: Richard Laager <rlaager@wiktel.com>
[applied the change to all the distros]
2022-09-10 16:28:09 -05:00
Scott G. Ainsworth
f5fbbb6f90 Clarify boot wording. Remove trailing spaces. 2022-08-28 15:53:55 -05:00
Scott G. Ainsworth
2fdc3aaf9a Update image link to Ubuntu 2022.04.01 2022-08-28 15:53:55 -05:00
Antoine Beaupré
726f07a127 port the recent commits to Ubuntu 22.04
Signed-off-by: Antoine Beaupré <anarcat@debian.org>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-06-09 12:28:50 -05:00
Richard Laager
9e7a1e8c54 Add "the" to a phrase
I noticed this while looking at #317.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-06-09 12:18:48 -05:00
Richard Laager
f30e459aa2 Debian/Ubuntu: Strengthen "New version" messages
This makes it more clear that the old guides are not receiving updates.

This came up in #309.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-05-25 13:53:46 -05:00
Richard Laager
db5c8c4785 Debian & Ubuntu: Rework dataset creation step
The major change for Ubuntu is to mark many of these as optional, like
with Debian and the old guides.  As I move away from zsys, this will end
up being more like the old way.

This was also discussed in #306 and #307, but this change has
trade-offs.  It can reduce the number of datasets created on the
system, but it does so by increasing the complexity to read and follow
the guide.

Then I just harmonized Debian with Ubuntu.  Aside from whitespace,
reordering, rewording, the substantive changes were to drop /opt and
add /var/lib/NetworkManager.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-05-19 23:17:17 -05:00
Richard Laager
7343c2253f Debian & Ubuntu: Use compatibility=grub2
This reduces the number of features I need to enable explicitly.

As discussed in #306 and #307.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-05-19 23:17:17 -05:00
Richard Laager
bc3af3ba58 Ubuntu 22.04: Update bpool features
This brings in things from Debian Bullseye.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-05-19 23:17:17 -05:00
Richard Laager
903d631033 Set encryption=on
encryption=aes-256-gcm is now the default.

anarcat mentioned this in PR #306.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-05-19 00:51:52 -05:00
Richard Laager
3d94c40b4a Ubuntu 22.04: Update encryption default note
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-05-19 00:07:43 -05:00
Richard Laager
8105d010fe Ubuntu 22.04 / Debian: Deprecate zsys
Ubuntu almost removed support for ZFS from the installer, and zsys is
on life support:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1966773
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1968150

I plan to rework the Ubuntu 22.04 instructions to be closer to those for
Debian Buster.  This will be straightforward, but I need to actually test
the resulting instructions before pushing that change.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-04-29 16:44:46 -05:00
Matt Bentley
4007f89319 Added note about boot pool size consideration; fixes #296
Signed-off-by: Matt Bentley <mbentley@mbentley.net>
2022-04-24 16:40:53 -05:00
Richard Laager
180dedbe6f Debian/Ubuntu: Add a hint about multi-disk setups 2022-04-21 23:31:54 -05:00
Richard Laager
3236a8bc82 Ubuntu: Add 22.04 for Raspberry Pi
I haven't tested these yet.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-04-21 23:31:32 -05:00
Richard Laager
761e88acce Ubuntu: Update for 22.04 release
I removed the beta marking from 22.04 and added the "Newer release
available" note to 20.04.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-04-21 23:29:54 -05:00
Richard Laager
e9ad548c11 Ubuntu 22.04: Fix some 20.04 references
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-03-17 19:10:21 -05:00
Richard Laager
c4010d709b Ubuntu 22.04: Drop zfs-mount-generator patch
The patch has been brought into Ubuntu 20.04.3 and is no longer needed.
I (rlaager) missed making this change to the 22.04 instructions too.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-03-17 19:06:47 -05:00
Richard Laager
0dddb09283 Ubuntu: Add beta 22.04 instructions
This is the 20.04 version with the following changes:
  - s/focal/jammy/
  - Drop the Errata section
  - The history symlink exists by default, so there is no need to
    create it.
  - Add a note about being beta instructions.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-03-10 22:33:59 -06:00
Richard Laager
8237016850 Ubuntu: Bump to 20.04.4
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-03-10 22:31:29 -06:00
schmidthausen
330ef6153d Ubuntu: Drop zfs-mount-generator patch
The patch has been brought into Ubuntu 20.04.3 and is no longer needed.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-03-10 22:27:51 -06:00
szubersk
77b8563015 Ubuntu: mention universe component
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
[Split this out.]
2022-02-26 11:36:22 -06:00
Richard Laager
96c790d51b Ubuntu: Remove mentions of 16.04
Ubuntu 16.04 support ended April 2021.

Limited support is available to commercial customers via the Extended
Security Maintenance (ESM) program, but this is only for select
packages.  So I think we are safe to drop this.
2022-02-26 11:34:42 -06:00
Richard Laager
e004a424e4 Ubuntu: Change some formatting
Use a "note" section for the Root on ZFS note.

Signed-off-by: szubersk <szuberskidamian@gmail.com>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
[Split this out and rewrote commit message.]
2022-02-26 11:29:44 -06:00
Fernando Carolo
e8771c6d84 Update docs for Ubuntu on Raspberry Pi for 20.04.4 release.
Update the getting started instructions for Ubuntu on a Raspberry Pi to
use the new 20.04.4 LTS release.

Signed-off-by: Fernando Carolo <fcarolo@google.com>
2022-02-26 11:22:17 -06:00
Kevin P. Fleming
5713bc08ed Use 'private' bind mounts
When plain '--rbind' is used, the 'umount' process executed later in the
setup process completely unmounts the bound filesystem, resulting in various
forms of breakage on the host used to do the setup. When a Live CD is used
and the system will be immediately shutdown/rebooted, this isn't an issue,
but in other scenarios it can be problematic.

Making the bind mounts 'private' avoids this problem. This patch changes
the setup guides for 'modern' distribution versions but does not touch
the older ones where this functionality may not be available.

Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-01-17 12:35:02 -06:00
shotcollin
28d89ab4a1 Ubuntu: Update errata to remove old paths
I think there might be a mixup in the errata between paths suggested
in 2020-05-30 fix and those in original/2020-12-15 fix.

Closes #244
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-01-12 01:41:00 -06:00
Richard Laager
704cb2f8b8 Ubuntu: Update link for 20.04.3 2021-12-13 20:06:11 -06:00
Richard Laager
a408cc2d67 Debian/Ubuntu: Set hostname in Live environment
This ensures that the Live hostname does not leak into e.g. OpenSSH
server keys.  It's not a huge deal either way, but this is nicer.

Closes #158
Thanks: anarcat
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-12-12 14:24:41 -06:00
Richard Laager
cbb49c7fb4 Debian/Ubuntu: Simplify os-prober removal
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-12-11 19:14:30 -06:00
Richard Laager
cd29b1a94e Ubuntu: Tweak initial ZFS install
It is not necessary to install zfs-initramfs in the Live environment.
I am changing this to reduce delta with the upcoming Debian Bullseye
instructions.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-12-11 19:14:30 -06:00
Scott G. Ainsworth
f60e80083d Ubuntu Raspberry Pi: Support USB disks
Signed-off-by: Scott G. Ainsworth <scott@ainsworth.us>
Co-authored-by: Richard Laager <rlaager@wiktel.com>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-11-02 00:05:58 -05:00
Richard Laager
20addfbd0e Ubuntu Raspberry Pi: Enable vc4-fkms-v3d
This enables 3D acceleration, which is desirable for desktop
installations.

Reported-by: Scott G. Ainsworth <scott@ainsworth.us>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
Closes #224
2021-10-30 14:38:57 -05:00
Richard Laager
bc5d60883e Revert "Ubuntu Raspberry Pi: Stop unattended upgrades"
"It turns out that stopping the service is only effective done shortly
after reboot (< 1 minute?). After that a kernel upgrade might be in
progress and the service stops only after the kernel upgrade is
complete. After the upgrade finishes, installation can continue.
However, stopping the unattended kernel upgrade can render the media
unbootable (because /etc/kernetl/postinit.d/zz-deccompress-kernel might
not have run)."

I guess we'll go back to telling people to wait (a possibly long time)
for unattended-upgrades to finish.

This reverts commit d9f50ffa89.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
Closes #225
2021-10-30 14:38:48 -05:00
Richard Laager
8cc8709364 Revert "Ubuntu Raspberry Pi: Remove "nosplash" bit"
I don't know what I was thinking last night... this was _adding_
nosplash, not removing it.

This reverts commit c5e77db483.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-10-30 14:38:36 -05:00
Scott G. Ainsworth
d9f50ffa89 Ubuntu Raspberry Pi: Stop unattended upgrades
Signed-off-by: Scott G. Ainsworth <scott@ainsworth.us>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-10-30 01:22:17 -05:00
Richard Laager
52e9c750e1 Ubuntu Raspberry Pi: Change some sudo -i steps
This makes things a bit more consistent.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-10-30 01:22:17 -05:00
Richard Laager
cc0dbd6105 Ubuntu Raspberry Pi: Change partitioning script
The partition script for sfdisk does not need another layer of
indirection.  Instead of being a shell script that writes an sfdisk
script, it is now just an sfdisk script directly.  The shell variables
are interpolated by the heredoc anyway.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-10-30 01:22:17 -05:00
Richard Laager
aba81046fa Ubuntu Raspberry Pi: Add groups
Just like the other instructions, add some groups that do not exist by
default but which are listed in the usermod command.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-10-30 01:22:17 -05:00
Richard Laager
f7551dd9b4 Ubuntu Raspberry Pi: Cleanup /etc/cloud
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-10-30 01:22:17 -05:00
Richard Laager
c5e77db483 Ubuntu Raspberry Pi: Remove "nosplash" bit
"nosplash" is not set by default.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-10-30 01:22:12 -05:00
Richard Laager
9e29f91e7f Ubuntu Raspberry Pi: Limit swapoff
In this version, the swapoff is being run on the non-Pi system.  I did
not mean for people to disable their swap (even temporarily).

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-10-30 01:01:05 -05:00
Richard Laager
0b7745ce87 Ubuntu Raspberry Pi: Add a comma
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-10-30 01:01:05 -05:00
Richard Laager
8991e688d8 Ubuntu: Update patch notes
This patch has been partially applied in 20.04.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-10-30 01:01:05 -05:00
Richard Laager
41ea6da337 Reorder SSH step
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>
2021-10-29 14:01:47 -05:00