


























1
I initially installed cachyOS without swap partition. I decided to create an encrypted swap partition. However by doing so it always asks for the password before it starts grub bootloader and after I select the current option, it will then asks me for the same password for the swap partition, I only want it to prompt me for the password once.
Keep in mind it is using the same password.
This is what I have under the following files:
/etc/fstab:
UUID=C19D-448D /boot/efi vfat defaults,umask=0077 0 2
/dev/mapper/luks-6bc30522-a289-422e-9dd6-7d21ce6493b7 / ext4 defaults,noatime 0 1
/dev/mapper/luks-8fd1bedb-61fe-4969-8c9a-5f72de6755c8 /home ext4 defaults,noatime 0 2
/dev/mapper/luks-8fd1bedb-61fe-4969-8c9a-5f72de6755c8 swap swap defaults 0 0
/etc/crypttab:
luks-6bc30522-a289-422e-9dd6-7d21ce6493b7 UUID=6bc30522-a289-422e-9dd6-7d21ce6493b7 /crypto_keyfile.bin luks
luks-8fd1bedb-61fe-4969-8c9a-5f72de6755c8 UUID=8fd1bedb-61fe-4969-8c9a-5f72de6755c8 /crypto_keyfile.bin luks
luks-02eca58f-2415-488f-9a2e-89421d1a5fd8 UUID=02eca58f-2415-488f-9a2e-89421d1a5fd8 luks-6bc30522-a289-422e-9dd6-7d21ce6493b7 luks,keyscript=/lib/cryptsetup/scripts/decrypt_derived,initramfs
/etc/default/grub:
GRUB_DEFAULT=0
GRUB_TIMEOUT='5'
GRUB_DISTRIBUTOR='CachyOS'
GRUB_CMDLINE_LINUX_DEFAULT='nowatchdog nvme_load=YES rd.luks.uuid=6bc30522-a289-422e-9dd6-7d21ce6493b7 rd.luks.key=/crypto_keyfile.bin rd.luks.uuid=02eca58f-2415-488f-9a2e-89421d1a5fd8 resume=/dev/mapper/luks-02eca58f-2415-488f-9a2e-89421d1a5fd8 splash loglevel=3'
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
GRUB_ENABLE_CRYPTODISK=y
# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY='true'
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
GRUB_THEME='/usr/share/grub/themes/cachyos/theme.txt'
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true
# Uncomment to disable submenus in boot menu
GRUB_DISABLE_SUBMENU='false'
# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
GRUB_DISABLE_OS_PROBER='false'
GRUB_EARLY_INITRD_LINUX_STOCK=''
GRUB_TOP_LEVEL='/boot/vmlinuz-linux-cachyos'
Any advise on what I need to do so that it only asks me once for the password?
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。