惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
D
Docker
F
Fortinet All Blogs
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
罗磊的独立博客
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
博客园 - 司徒正美
T
Tailwind CSS Blog
C
Check Point Blog
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
L
LangChain Blog
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
腾讯CDC
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - Franky
量子位

CachyOS Forum - Latest posts

Ran into a frozen black screen issue with latest update Niri Settings GUI Not Appearing Update to Gnome 50 and I'm getting black/blank screen on NVIDIA with hybrid graphics My JBL Quantum 350 headphones dont play sound 90% of the time on linux while on windows it plays audio 99% of the time Niri/Noctalia Shell notifications Getting a black screen after alt-tabbing too many times Rog-control-center Duplicate keyboard and mouse in system settings? Games running very poorly after first session (semi-solved, still need help though!) Amdgpu random hangs (does cachy perhaps plan to carry patches for this)? A little something. The adj script that replaces GNU fmt for non-ASCII text Mouse scroll wheel issues - ratchet Can't start steam after updates of today (17 April) Balena etcher or ventoy QEMU Bridge setup - Maybe already known but I found it pretty difficult to do and needed much reading Multi-boot install: what do I do about my /boot and /boot/efi partition? Do you collect all the solutions and post them on Wiki or Forum? System update - lts headers invalid or corrupted Sick to death of updates killing my games! I messed up my stuff again and cant download any thing now. error below Got Logitech MX4 with Haptic working in CachyOS Need help with the performance button on my Acer Nitro V16 AI Bailing out, you are at your own Troubles in the Starfield What is so special about the new Linux Kernel 7? "Issue: Display brightness is locked at a low level after waking from sleep on CachyOS (latest update) Balena etcher or ventoy Help with kernel update, emergency mode Issue happening only on wayland Display not recognised - low resolution
CachyOS asks for encrypted password twice for both root a...
@samturner · 2026-05-17 · via CachyOS Forum - Latest posts

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.

image
image

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?