[wiki] RFC on changes to ResizeEncryptedPartitions

Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[wiki] RFC on changes to ResizeEncryptedPartitions

Josh Bialkowski

I recently followed the guide on this page:
to shrink my root partition after a default encrypted install. I found a
of minor issues so I was going to update the page but I wanted to double
on the accuracy of my planned edits. I would appreciate comments on the
following two items:

1. "Update fstab with new uuid"

I was planning to add an alert box / note that for a default 18.04 install
is not necessary as fstab doesn't contain a UUID for swap. However the old
swap volume UUID was referenced in `/etc/initramfs-tools/conf.d/resume`
needs to be changed. Otherwise I saw this warning during `update-initramfs

W: initramfs-tools configuration sets
W: but no matching swap device is available.
I: The initramfs will attempt to resume from /dev/dm-2
I: (UUID=6c4aa319-f370-4870-8a23-ad54aa091cdd)
I: Set the RESUME variable to override this.

2. "resize your crypt"

This appears to be unnecessary. I did a little googling
(e.g. https://unix.stackexchange.com/a/416356/228030)
and the best I can tell luks doesn't store information about the size of
the volume. Doing this resize only applies to "for now" and since the very
step is to close the crypt I'm pretty sure this is unnecessary. I skipped
when I was resizing my disk and it didn't *seem* to cause ill effect.
ubuntu-doc mailing list
[hidden email]