升级到 18.10 后,我的笔记本电脑需要大约 3 分钟才能启动,之前大约需要 15 秒。启动屏幕消失时出现消息“cryptsetup waiting for encrypted device / swapfile”,笔记本电脑启动进入initramfs,当我输入“退出”笔记本电脑正常启动时。除此消息外,引导日志很清晰
[ OK ] Started Cryptography Setup for cryptswap1.
[FAILED] Failed to activate swap /swapfile.
See 'systemctl status swapfile.swap' for details.
[DEPEND] Dependency failed for Swap.
当我输入“systemctl status swapfile.swap”时,我收到此消息
Unit swapfile.swap could not be found.
你能帮我吗?
/etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdc7 during installation
UUID=faef8f0b-bf61-4540-ac7d-25fc1b15b6b7 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sdc1 during installation
UUID=D234-7542 /boot/efi vfat umask=0077 0 1
# /swapfile none swap sw 0 0
# /dev/mapper/cryptswap1 none swap sw 0 0
/etc/crypttab 文件为空
这个问题在我升级到 4.18.0-11 内核后自行解决,并且有一条错误消息删除 cryptsetup-initramfs 模块,所以我将其删除,笔记本电脑现在可以正常启动