I updated last night as seen in my logs.
Start-Date: 2020-03-16 13:56:51
Commandline: apt upgrade
Requested-By: logan (1001)
Install: linux-image-5.3.0-42-generic:amd64 (5.3.0-42.34, automatic), linux-tools-5.3.0-42:amd64 (5.3.0-42.34, automatic), linux-headers-5.3.0-42-gener
ic:amd64 (5.3.0-42.34, automatic), linux-modules-extra-5.3.0-42-generic:amd64 (5.3.0-42.34, automatic), linux-headers-5.3.0-42:amd64 (5.3.0-42.34, auto
matic), linux-tools-5.3.0-42-generic:amd64 (5.3.0-42.34, automatic), linux-modules-5.3.0-42-generic:amd64 (5.3.0-42.34, automatic)
Upgrade: linux-tools-generic:amd64 (5.3.0.40.34, 5.3.0.42.36), linux-headers-generic:amd64 (5.3.0.40.34, 5.3.0.42.36), linux-libc-dev:amd64 (5.3.0-40.32, 5.3.0-42.34), linux-image-generic:amd64 (5.3.0.40.34, 5.3.0.42.36), linux-tools-common:amd64 (5.3.0-40.32, 5.3.0-42.34), linux-generic:amd64 (5.3.0.40.34, 5.3.0.42.36)
End-Date: 2020-03-16 13:57:26
This morning I got dropped into initramfs with the following message.
WARNING: Option 'size' missing in crypttab for plain dm-crypt
mapping cryptswap1. Please read
/usr/shar/doc.cryptsetup-initramfs/README.initramfs.gs and add the correct
'size' option to your crypttab(5).
crypt
cryptsetup: waiting for encrypted source device /swapfile......
Alert! encrypted device /swapfile does not exist! can't unlock.
Check cryptopt=source= bootarg: cat /proc/cmdline
or missing modules, devices: cat /proc/modules; ls /dev
Dropping to shell.
I didn't think I had a swap drive (IT from work setup this laptop last month so I'm not sure). I found a 1gb swap running free after removing the crypttab file which I then removed using sudo swapoff -a and commenting out the crypttab file. I couldn't find any fstab entry. The startup error persists although now my swap shows a size 0 after startup.
It was a real pain to boot due to all the similar cases online suggesting editing /etc/fstab and /etc/crypttab. fstab was empty and crypttab was located at cryptroot/cryptab in the ash shell it put me in which confused me. I simply deleted the crypttab file and ran exit to boot.
Since everyone in running Ubuntu 19.10 at work will has the same setup, I was wondering if it was caused by my update last night, and if anyone here could help me figure out which update caused this or if there is any other cleanup I should do.I believe I should remove the crypttab file and any mention of swap in fstab or add a valid size. Or I'll have this problem next time I boot up. My crypttab looks like this
# <target name> <source device> <key file> <options>
cryptswap1 /swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Bonus points for helping me understand where the shell I was dropped into was running or how I should get into a shell with better editing options once dropped into ash (ie. nano, vi or vim). I saved crypttab to /crypttab.old but now that I'm logged in I can't find it.
Additionally I've removed fstab comment so my fstab only has the /swapfile/none and ran sudo cryptsetup remove cryptswap1 and removed /etc/crypttab but I am still failing on boot with the same issue. I also tried the opposite I uncomented fstab and cryptab and added size=512 to crypt tab. The size didn't show up in the file on reboot and it failed similarly.
Update: fixed it by following the steps here it turns out I needed to update initramfs to make any of the changes take effect.