升级到 18.10 后启动需要几分钟

升级到 18.10 后启动需要几分钟

升级到 18.10 后,我的笔记本电脑启动大约需要 3 分钟,以前大约需要 15 秒。启动屏幕显示消息“cryptsetup 正在等待加密设备/交换文件”,当它消失时,笔记本电脑启动到 initramfs,当我输入“exit”时,笔记本电脑正常启动。除了这条消息外,启动日志很清晰

[  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 文件是空的

答案1

当我升级到 4.18.0-11 内核时,这个问题自行解决了,并且出现了一条删除 cryptsetup-initramfs 模块的错误消息,因此我将其删除,现在笔记本电脑可以正常启动了

相关内容