Quote:
Originally Posted by ondoho
Did you create that encrypted swap manually, or is it something Ubuntu offers to do for you?
Are you aware that swap is encrypted automatically when it resides inside an encrypted volume group?
Why is that line in /etc/fstab apparently edited later?
I use encrypted swap and it does not affect kernel updates or initramfs in any way.
But that's not on Ubuntu.
Are you aware that 19.04 and 19.10 are beta versions?
If you don't feel competent to deal with small problems you shoudl stick to the LTS releases. I'm not saying that condescendingly, I would personally never consider using anything but *buntu LTS.
How could that be "deprecated"? No, they're not.
|
Thanks for that. No condescension detected! I'm aware of my limitations and am happy to acknowledge them..
I had some difficulty 2-3 years ago getting Ubuntu to install on my old hp (HP8440p) laptop due to UEFI issues.
I should have stayed with 18.04 LTS but (mistake for sure) migrated to 19.04 as it (again a mistake) seemed a good idea at the time.
I updated (not a mistake) to 19.10 as it keeps security up to date, pending release of 20.04 LTS.
Encrypted swap partition seemed a reasonable choice when installing 18.04 and (I don't remember the details) I went for it.
My query boils down to "why did the 19.04->19.10 update have a problem generating an initramfs while complaining that I have (as I do) an encrypted swap partition?"
Here is an early snippet from my apt-term.log: (this is the error that worried me)
Code:
update-initramfs: Generating /boot/initrd.img-5.0.0-38-generic
cryptsetup: ERROR: Couldn't resolve device
UUID=efeee2ee-c1e4-45b3-a034-c0ee08ca8947
W: initramfs-tools configuration sets RESUME=UUID=efeee2ee-c1e4-45b3-a034-c0ee08ca8947
W: but no matching swap device is available.
update-initramfs: Generating /boot/initrd.img-5.0.0-37-generic
cryptsetup: ERROR: Couldn't resolve device
UUID=efeee2ee-c1e4-45b3-a034-c0ee08ca8947
W: initramfs-tools configuration sets RESUME=UUID=efeee2ee-c1e4-45b3-a034-c0ee08ca8947
W: but no matching swap device is available.
and another snippet later in the install from apt-term.log:
Code:
Setting up linux-image-5.3.0-46-generic (5.3.0-46.38) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.0.0-38-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.0.0-38-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.3.0-46-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.3.0-46-generic
I now have initrd.img -> initrd.img-5.3.0-46-generic in /boot and of course uname -a gives
Code:
uname -a
Linux john-HP-EliteBook-8440p 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
so all OK.
But the error:
Code:
cryptsetup: ERROR: Couldn't resolve device
UUID=efeee2ee-c1e4-45b3-a034-c0ee08ca8947
W: initramfs-tools configuration sets RESUME=UUID=efeee2ee-c1e4-45b3-a034-c0ee08ca8947
W: but no matching swap device is available.
maybe suggests that my old initrd.img was looking for the wrong UUID for the encrypted swapfile.
There is no UUID=efeee2ee-c1e4-45b3-a034-c0ee08ca8947 on the system.
Hopefully the newly generated initrd.img has the correct swapfile info?
Is there any way to check this?
Many thanks.