Ubuntu 18.04 Root on ZFS
George Melikov edited this page 2020-05-21 21:11:38 +03:00

Wiki Page Revisions

106 Commits

Author SHA1 Message Date
George Melikov 075ad350f8 Redirect all pages to new documentation resource
Signed-off-by: George Melikov <mail@gmelikov.ru>
2020-05-21 21:11:38 +03:00
Richard Laager 4dd322f118 Debian/Ubuntu: Separate a command
Having the systemctl enable command right with the unit file contents
made it possible to confuse that command for part of the file contents.

Fixes #9985
2020-02-14 23:05:23 -06:00
Richard Laager 8a78aada68 Debian/Ubuntu: Clarify grub-install for UEFI 2020-02-03 03:46:13 -06:00
Richard Laager fa97fbf59e Debian/Ubuntu: Update zfs-discuss links
The old link was dead.
2020-02-03 03:46:04 -06:00
Richard Laager da1ee47f33 Ubuntu: Switch to shimx64.efi
Closes #9785

Reported-by: fermulator
2019-12-28 22:18:25 -06:00
Richard Laager be7eda21e3 Debian/Ubuntu: Fix efibootmgr
The -p argument to efibootmgr specifies the partition number.  I failed
to update this from 3 to 2 when I changed the partition layout.

Reported-by: Chen Yufei <cyfdecyf@gmail.com>

Fixes #9490
2019-12-14 18:51:55 -06:00
Richard Laager 72066a939e Ubuntu: Disable gnome-initial-setup
Fixes #9628

"After completing the optional step 8.2b, rebooting the machine
confusingly tries to walk you through the new user setup process even
though local users have been created. The workaround for this on Ask
Ubuntu https://askubuntu.com/a/1039368 is to modify
/etc/gdm3/custom.conf
...
Then one is presented with the typical login screen instead of always
being asked to create a new user."

It's been a while since I have tested an GUI install from scratch.  I'm
taking this report at face value until I have a chance to test again.
2019-12-05 01:27:41 -06:00
Richard Laager a2e28dcde8 Ubuntu/Debian: Use a variable for the disk
This simplifies a bunch of typing.  This does more strongly encourage
people to use /dev/disk/by-id naming, as e.g. ${DISK}-part1 does not
work if $DISK is /dev/sda.  This could be a considered a feature or a
bug, depending on one's perspective.
2019-11-04 21:35:15 -06:00
Richard Laager 0ea96f54fb Ubuntu/Debian: Remove prompts from commands
This should facilitate easier copy-and-paste.
2019-11-04 21:20:16 -06:00
Richard Laager a0b47d0b57 Debian/Ubuntu: Change formatting on osprober note 2019-10-14 21:36:25 -05:00
Richard Laager 08af929cf0 Ubuntu: Drop popcon
They (Ubuntu/Canonical) don't use its results.
2019-10-11 15:29:59 -05:00
Richard Laager a0a604ea1a Debian/Ubuntu: Simplify cp command
Suggested-by: colmbuckley
2019-10-07 01:30:10 -05:00
Richard Laager 66d4bad26f Ubuntu: Slightly improve the LUKS/mounting steps 2019-09-27 01:11:49 -05:00
Richard Laager e92b6f8199 Debian/Ubuntu: Improve popcon instructions
The user needs to pick Yes when installing popcon.
2019-09-27 01:07:05 -05:00
Richard Laager e5d0fee0b1 Ubuntu: Update for 18.04.3
Reported-by: Cameron Skappel <cskappel@wiktel.com>
2019-09-26 22:20:23 -05:00
Richard Laager bc72d6402b Debian/Ubuntu: Increase the boot pool to 1G
This helps if the user has snapshots.  Additionally, 1G is the expected
size that the Ubuntu installer will use.
2019-09-18 08:22:18 -05:00
Richard Laager dcbe870e03 Debian/Ubuntu: Fix git clone command
Reported-by: HankB in issue #9149
2019-08-13 17:29:03 -05:00
Richard Laager fa6b4291cc Debian/Ubuntu: Note that Internet is required
The Root-on-ZFS HOWTOs require Internet access to download packages.
2019-07-29 11:54:15 -05:00
Richard Laager 8d1c03291d Root-on-ZFS: Add a note about GRUB & mirroring
Reported-by: Erik Wramner
https://github.com/zfsonlinux/zfs/issues/8223#issuecomment-505339755
2019-06-25 18:24:11 -05:00
Richard Laager 53f1fe99b4 Ubuntu: Add missing /mnt prefix
Reported-by: gurg on Freenode
2019-04-20 12:11:38 -05:00
Richard Laager f8295f9368 Debian/Ubuntu: Fix a bpool/rpool typo 2019-04-17 22:11:05 -05:00
Richard Laager 7ba89030c8 Debian/Ubuntu: Use AES-256
cryptsetup 2.1.0-1 now uses AES-256.  This will be released with Debian
Buster and Ubuntu Disco (19.04).

Reported-by: Jason Cohen <jwittlincohen@gmail.com>
2019-04-17 18:57:24 -05:00
Richard Laager b59ba9e595 Debian/Ubuntu: Capitalize LUKS in the last change 2019-04-14 15:36:32 -05:00
Richard Laager db9006eeb5 Debian/Ubuntu: Suggest backing up the LUKS header 2019-04-14 15:35:43 -05:00
Richard Laager 7256853d6e Debian/Ubuntu: Add some header text
This way, all of the steps should have actual text describing the
operation.
2019-04-14 15:34:30 -05:00
Richard Laager 819ee61a3b Debian/Ubuntu: Tweak the Contributing wording 2019-04-14 08:04:53 -05:00
Richard Laager c72d975581 Debian/Ubuntu: Fix formatting in Contributing 2019-04-14 08:03:33 -05:00
Richard Laager 7874b4ce46 Debian/Ubuntu: Add a Contributing section 2019-04-14 08:02:12 -05:00
Richard Laager e4eba020b8 Debian/Ubuntu: Update encryption notes 2019-04-12 04:00:56 -05:00
Richard Laager e4c2f91df0 Debian/Ubuntu: Request users install popcon
Showing that ZFS is popular may be helpful in terms of long-term
attention from the distro.
2019-04-10 14:11:43 -05:00
Richard Laager a24b5bb0c6 Ubuntu/Debian: Do not mention "Ubuntu" encryption
This fixes a mention of "Ubuntu" that slipped into Debian, and also
avoids the need to diverge them needlessly.
2019-04-10 10:00:26 -05:00
Richard Laager 434cf26e2b Ubuntu: Pluralize "snapshots" in 9.2 2019-04-10 08:59:51 -05:00
Richard Laager f432b99c67 Ubuntu/Debian: Make swap optional
On Ubuntu, merge in the swap deadlock warning.
2019-04-10 08:59:20 -05:00
Richard Laager c9a11f1d79 Ubuntu: Use vi rather than a big cat
This seems more user-friendly.  I already eliminated the others.
2019-04-10 08:58:05 -05:00
Richard Laager 8d3a05a5c1 Ubuntu: Reorder system groups step
This is to allow me to reduce the delta with Debian.  By putting this at
the end, I can simply omit it on Debian, which avoids needing to
renumber all the following steps in that section.
2019-04-10 08:57:09 -05:00
Richard Laager 7e031dc07d Ubuntu: Fix a double comma
Reported-by: Spencer Kushinski <skushinski@wiktel.com>
2019-04-08 23:27:35 -05:00
Richard Laager 82ee65e5ae Ubuntu/Debian: Enable discard on swap
There is no need to be keeping old swap data around.  When Linux is done
with some data (or all data at swapon time), it can issue a discard,
which will cause ZFS to free those blocks.
2019-03-30 08:04:18 -05:00
bunder2015 cde3d37d7f fix bad comment block 2019-03-20 05:18:15 -04:00
Richard Laager ca3179c83e Ubuntu/Debian: Mark optional datasets as such 2019-03-18 22:48:52 -05:00
Richard Laager b44aed1c46 Ubuntu: Add a note about osprober errors 2019-03-18 21:49:39 -05:00
Richard Laager 8394260319 Ubuntu: Set GRUB_RECORDFAIL_TIMEOUT
Without this, the timeout is 30 seconds regardless of GRUB_TIMEOUT.
2019-03-18 21:49:13 -05:00
Richard Laager a96d8f0110 Ubuntu: Lowercase "ubuntu" for EFI mirroring
This probably doesn't matter, since it is FAT32.
2019-03-18 21:44:22 -05:00
Richard Laager e9c588ea02 Debian/Ubuntu: Cleanup mirror instructions more 2019-03-18 21:43:21 -05:00
Richard Laager b4d16265ed Debian/Ubuntu: Standardize on "BIOS" booting 2019-03-18 21:41:21 -05:00
Richard Laager 8baf0569aa Ubuntu: Use /etc/netplan/01-netcfg.yaml
This simplifies the instructions slightly and matches upstream Ubuntu
installer behavior.

Also, I've added a warning about changing "NAME" as that was a problem
for someone a while back.
2019-03-18 21:31:42 -05:00
Richard Laager cffdb36aa1 Ubuntu/Debian: Update for 4Kn
I tested this on Ubuntu.
2019-03-18 21:31:42 -05:00
Richard Laager 7833828315 Debian/Ubuntu: Align BBP to 4 KiB boundary
This probably doesn't matter, but there's not really any harm either.

Reported-by: rsully on FreeNode
2019-03-18 21:31:42 -05:00
Richard Laager 2f6cce151a Ubuntu: Use a separate boot pool
This way, we only have to restrict the boot pool's features, not the
root pool's features.  At the moment, that gets us dnodesize=auto.  In
the future, this will be more important, as we will eventually want to
use native encryption.

Unfortunately, since GRUB then can't read the root filesystem, it fails
to determine the root pool name and the root=ZFS=rpool/ROOT/ubuntu
becomes root=ZFS=/ROOT/ubuntu, which fails.  There are a number of ways
to fix this, but I've chosen to manually set root=ZFS=rpool/ROOT/ubuntu
in /etc/default/grub.  This avoids patching anything in GRUB, including
/etc/grub.d/10_linux.  For future releases, hopefully I can get some
patch into Ubuntu's GRUB to address this without needing to set anything
in /etc/default/grub.
2019-03-18 21:31:42 -05:00
Richard Laager 08c95e57fe Debian/Ubuntu: Limit the pool features
Limit the pool features to only those supported by GRUB.
2019-03-18 21:31:37 -05:00
Richard Laager c913dddbfc Ubuntu: Add a note about the HWE kernel 2019-03-18 21:29:43 -05:00