Commit Graph

84 Commits

Author SHA1 Message Date
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
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
Richard Laager
4fa77b2658 Ubuntu/Debian: Fix formatting
I had one too many spaces.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-02-15 21:57:36 -06:00
Richard Laager
e8763236b6 Ubuntu/Debian: Disable automounting
If the disk has been used before (with partitions at the same offsets),
previous filesystems (e.g. the ESP) will automount if not disabled.

Co-authored-by: attero <service-github@attero.me>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
Closes #119
2021-02-09 18:57:01 -06:00
Richard Laager
b2d60382ba Debian & Ubuntu: chmod 700 /root
"The /root dataset is created with default world-readable permissions
 (755).  debootstrap would create /root with 700 permissions, but it
 does not change the permissions if it already exists."

Reported-by: zxyrepf
Closes #115
2021-02-02 03:28:38 -06:00
Richard Laager
fac3cb834b Ubuntu: Remove canmount=noauto from zed steps
I missed this when eliminating canmount=noauto from /boot and / in
commit eb05d5b190.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-02-02 03:28:34 -06:00
Richard Laager
c00aa93389 Debian/Ubuntu: Update /boot/efi fstab entry
I made Debian follow the Ubuntu approach, which comes from the Ubuntu
installer.  There was a report (#99) of a problem with the old approach
used on Debian.  In that issue, user foo-git linked to a Fedora feature
request which discusses automounting /boot/efi instead.  I've offered
that as an alternative.

I am not switching to that outright, as following the Ubuntu installer
(where possible) is a goal of mine.

Suggested-by: foo-git
Closes #99
2021-01-09 16:59:17 -06:00
Richard Laager
2c76e5de97 Debian/Ubuntu: Try again with /run
The fix for #97, 66233a1138, seems to
have created yet another issue (beyond #100):

"the link /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
is dangling (since /run has just been clobbered by an empty tmpfs).
debootstrap seems to populate all manner of stuff in /run."
f1721edda7 (commitcomment-45770519)

I considered just reverting all of this, since the original issue only
occurred when copying in an existing system.  Ignoring it was my
decision the first time this came up.  But it's come up twice now.
Also, this mode is mentioned in the guide.  Most importantly, if we are
not mounting a /tmpfs at /run in the normal case, then we could end up
with cruft in /run in the root filesystem which could potentially break
something or be confusing later if the /run tmpfs ever failed to mount.
So in the interest of correctness, I'd like to try to handle this.

I am now mounting a tmpfs at /mnt/run before the debootstrap step.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-01-08 16:16:35 -06:00
Richard Laager
d06e1a9b13 Debian/Ubuntu: Create /mnt/run/lock
The fix for #97, 66233a1138, seems to have
created another issue.

Closes #100

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2021-01-05 00:01:22 -06:00
Richard Laager
f1721edda7 Mount a tmpfs at /run
It was reported, in #97, that this is required when copying an existing
system installation into the root filesystem.  It is probably a good
idea to do this all the time, to avoid the risk of stray junk ending up
in /run during the install process.

Suggested-by: Hevisko <hvjunk@gmail.com>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2020-12-30 23:51:28 -06:00
Richard Laager
3dd76f39ec Debian/Ubuntu: Fix os-prober change
This was broken in add1e275fb.

Closes #93

Reported-by: Wojtek Siudzinski <admin@suda.pl>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2020-12-18 19:34:37 -06:00
Richard Laager
e08d1c19ef Ubuntu Pi: Fix a formatting syntax error 2020-12-12 03:53:49 -06:00
Richard Laager
3d862230eb Debian/Ubuntu: Add some blank lines
The convention here is to add a blank line between commands that
cannot be copied-and-pasted together.  apt is such a command, as it
will eat the input from the paste.
2020-12-12 03:49:41 -06:00
Richard Laager
6bfb226bf0 Ubuntu: Drop gdm InitialSetupEnable=false
I can't remember why this was added and it does not seem to be particularly
necessary.
2020-12-12 03:46:14 -06:00
Richard Laager
e536ce98a0 Ubuntu: Drop dd ... of=/dev/stdout
This does not make any sense to me.  dd outputs to stdout by default.
2020-12-12 03:42:26 -06:00
Richard Laager
b0506fe2ae Ubuntu: Fix a formatting mistake 2020-12-12 03:40:19 -06:00
Richard Laager
cd896b85b5 Ubuntu: Stop enabling universe in Live CD
It is not necessary to enable universe in the Live CD. zfs-initramfs is
in main these days.

I left universe (and multiverse) enabled in the installed system.
People who care can customize.
2020-12-12 03:34:50 -06:00
Richard Laager
e4cc9f9799 Ubuntu: Set autotrim=on
The Ubuntu installer sets this.
2020-12-12 03:34:17 -06:00
Yvan-Masson
add1e275fb Ubuntu/Debian: use apt instead of dpkg
In general apt is the preferred way to interact with packages, and I
think in this case there is no need/advantage to use dpkg.

Closes #88

Signed-off-by: Richard Laager <rlaager@wiktel.com>
[Fixed the other two instances too.]
2020-12-09 22:35:42 -06:00
Richard Laager
44170fdbd5 Ubuntu: Go back to bpool/grub
For a mirror or raidz topology, /boot/grub is on a separate dataset.
This was originally bpool/grub, then changed on 2020-05-30 to
bpool/BOOT/ubuntu_UUID/grub to work-around zsys setting canmount=off
which would result in /boot/grub not mounting.  This work-around lead
to issues with snapshot restores. The underlying zsys issue
ubuntu/zsys#164 was fixed and backported to 20.04, so it is now back to
being bpool/grub.

This reverts commit b6fd009edd.  It
conceptually reverts the errata notes from commit
04d3c1cee4, but includes new steps for
people in the pre-2020-05-30 state.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
Fixes #55
2020-12-05 18:22:34 -06:00
Richard Laager
eb05d5b190 Ubuntu: Remove canmount=noauto on / and /boot
I think (but am not absolutely certain) that things behave as follows:

- The non-zsys initramfs script expects canmount=noauto for the root
  filesystem.  It then mounts the active one (e.g. in the case of
  clones) manually, overriding that.
- zsys manages the canmount attribute.

I am sure that when the system boots with zsys, the initial datasets,
which were created with canmount=noauto, have canmount=on.

Therefore, there seems to be no reason to set canmount=noauto for the
zsys scenario, and I have removed it.  This simplifies the instructions
and may avoid issues like #73.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
Fixes #73
2020-12-05 17:53:27 -06:00
Richard Laager
19ce5874b7 Ubuntu: Use grub-efi-amd64's multiple disk code
Ubuntu 20.04's GRUB supports multiple EFI disks.  There is a small
caveat in that it doesn't prompt in the chroot, but it works fine after
the reboot.  Using the stock support means that the ESPs will be kept in
sync automatically.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
Refs issue #55
2020-12-05 17:44:13 -06:00
Richard Laager
f1a7f4ef62 Ubuntu: Use "defaults" for /boot/efi
This matches the 20.04 installer.

Also, disable fsck, because that's what the installer does.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2020-12-05 17:33:13 -06:00
Richard Laager
d86f52c207 Debian/Ubuntu: Use /dev/disk/by-uuid
This is how the Ubuntu 20.04 installer configures the ESP to mount at
/boot/efi, so it should be fine to use this convention everywhere.

/dev/md0's /dev/disk/by-uuid entry does not show up immediately, so I
removed the swapon there.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2020-12-05 17:32:40 -06:00
Richard Laager
c94ee2cae4 Debian/Ubuntu: Configure keyboard & charset
On Ubuntu, console-setup, keyboard-configuration (a dependency of
console-setup), and locales are installed by default.  On Debian, we
need to install them manually.  (We were already doing so for locales.)

I merged the various dpkg-reconfigure lines into one to simplify.  The
order isn't important.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
Reported-by: Robert <technic-take3>
Fixes #59
2020-12-05 16:57:34 -06:00
Richard Laager
605463d8dd Ubuntu: Update URL for 20.04.1
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2020-12-05 16:35:49 -06:00
Richard Laager
84417c52db Ubuntu: bpool must be named bpool
Fixes #85
Reported-by: Bob Ziuchkovski <bob.ziuchkovski@gmail.com>
2020-11-30 00:42:06 -06:00
Mathias Gibbens
9ed82cda6e Fix pip3 install command for Debian-based distros
Signed-off-by: Mathias Gibbens <mathias@calenhad.com>
2020-11-25 17:17:29 -06:00
Richard Laager
04db2386fd Ubuntu: Fix a typo
Reported-by: donniep
Fixes #71
2020-11-09 19:35:24 -06:00
Richard Laager
0e030ab146 Ubuntu: Remove zpool_checkpoint from bpool
The docs note that I tested this, but I'm going to remove this, out of
an abundance of caution given the report of failure in #57.  I may re-test
later, but this isn't a huge priority for me.

Fixes #57
2020-09-27 14:17:18 -05:00
George Melikov
a12e60f437 Use mailing lists anchor everywhere 2020-09-21 19:28:09 +03:00
Richard Laager
c7534660ee Ubuntu: Flatten bootloader partitioning steps
This makes it easier to follow (and specifically, harder to miss the
second step).

Reported-by: Niall Douglas <ned14>
Issue #54
2020-09-09 15:26:36 -05:00
Richard Laager
28ccb936b3 Ubuntu: Add a password length warning
If the user gives too short of a password when encryption via a hacked
installer, the installer will crash.  (I haven't personally verified
this, but it sounds plausible.)

Reported-by: Sithuk
Closes: 52
2020-09-08 00:41:04 -05:00
Richard Laager
5523d6cb6b Ubuntu: Fix patch commands
These were missing "sudo".

Reported-by: Sithuk
Issue #52
2020-09-07 00:44:54 -05:00
Richard Laager
08832a3454 Ubuntu 20.04 Pi: Fix Pi 4 B name
There is no 4 B+.
2020-08-31 01:47:45 -05:00
Richard Laager
5b4f4779ea Ubuntu 20.04 Pi: Simplify SD card clearing
Zeroing the entire disk takes a long time.  These steps _should_ be
sufficient.
2020-08-31 01:20:49 -05:00
Richard Laager
51a4f5055e Ubuntu: Add instructions for the Raspberry Pi
I have not tested encryption, but otherwise this works.
2020-08-31 01:12:02 -05:00
Richard Laager
e2d9dcd2ad Debian/Ubuntu: Fix locales formatting 2020-08-31 00:21:38 -05:00
Richard Laager
371d3cf08b Debian/Ubuntu: Update pip3 command
This now matches the example in the top-level README.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
2020-08-12 17:34:27 -05:00
Karsten Weiss
5c67d3d1fc Spelling fixes 2020-08-02 03:39:10 -05:00
Richard Laager
ba04f2100c Ubuntu: Fix bug URL
I was linking to the wrong bug (bad copy-and-paste).
2020-07-17 03:54:19 -05:00
Richard Laager
ce83696a66 Ubuntu: Line wrap 2020-07-17 03:54:09 -05:00
Luca Citi
338b567574 Ubuntu 20.04: Fix rescue instructions
/boot is no longer in /etc/fstab.

Closes: #32
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2020-06-26 01:52:24 -05:00
Jonathan Watt
ddc56b0106 Switch open-zfs.org links to openzfs.org, and use HTTPS URLs
The open-zfs.org host, Dreamhost, returns a page for https://open-zfs.org
(note, httpS://) which causes HTTPS Everywhere with the 'Encrypt All
Eligible Sites' option enabled to redirect http://open-zfs.org to
https://open-zfs.org, and therefore fail to redirect to openzfs.org.
Ideally a redirect would be implemented at Dreamhost for
httpS://open-zfs.org too, but presumably the links in the docs should
really be updated anyway.
2020-06-17 20:19:49 +03:00
Richard Laager
58104f6781 Ubuntu 20.04: Add unmount step to GRUB errata
It is possible that /boot/grub is mounted.

Reported-by: Larry Wagner <larrywagner0@gmail.com>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2020-06-10 23:34:13 -05:00