If you install LinuxMint 19 with LVM, slow boot problem happens. This article will describe a way to avoid this problem. If you install LinuxMint 19 without LVM, this problem does not happen.
Table of Contents
1 Slow boot problem when using LVM
systemd-analyze shows that kernel boot time takes a lot of time.
$ systemd-analyze Startup finished in 34.539s (kernel) + 2.871s (userspace) = 37.410s graphical.target reached after 1.305s in userspace
The wait-for-root in /usr/share/initramfs-tools/scripts/local times out after expiring 30 seconds (slumber value).
2 Avoid slow boot problem when using LVM
Assign device file path of LVM swap partition to RESUME. This is the same with /etc/initramfs-tools/conf.d/resume in Debian 9.
$ sudo sed -e 's/^RESUME=/#RESUME=/g' \ -i /etc/initramfs-tools/conf.d/resume $ echo "RESUME=/dev/mapper/mint--vg-swap_1" | \ sudo tee -a /etc/initramfs-tools/conf.d/resume
Recreate initrd and reboot system.
$ sudo update-initramfs -u $ sudo reboot
Kernel boot time is faster and you can use hibernation.
$ systemd-analyze Startup finished in 2.398s (kernel) + 1.255s (userspace) = 3.654s graphical.target reached after 1.240s in userspace