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

推荐订阅源

博客园_首页
H
Help Net Security
量子位
The Cloudflare Blog
博客园 - Franky
博客园 - 聂微东
博客园 - 司徒正美
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
宝玉的分享
宝玉的分享
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
罗磊的独立博客
GbyAI
GbyAI
雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
MongoDB | Blog
MongoDB | Blog

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
Disable or lock Emergency mode
makeithappen · 2026-05-21 · via CachyOS Forum - Latest posts

So when i boot my device (Luks2 (unlock with TPM2 + Pin)) on systemd-boot after some wait while the system ask the pin to use the key it taken from the TPM, the system seem to “go” into emergency mode after this (i will call it timeout)

I searched how to prevent this emergency mode, and i come across this archwiki, i followed the URL to systemd, and applied the recommendation : sudo systemctl mask rescue.target rescue.service emergency.target emergency.service (also masked the rescue after more research), and relaunched mkinitcpio -P.

Yet it still happen.

So my question is this one “does someone know how to prevent this emergency mode” in the initramfs (since we are in preboot) ?

My goal is purely beauty of the boot not security increase, as root is disabled in emergency mode and it will ask the encryption pin even there.

Thanks

cscs 2

Masking those units will not have any impact on the presence or not of the emergency mode in the initram. As mentioned in a note at the link;

I guess we could look at the /etc/mkinitcpio.conf or any custom file if in use.

how would eliminating emergency mode do this?

was one of the idea i had.

If you have an alternative to prevent the password prompt waiting for the TPM2 pin to stop and fell into emergency mode, i take it.

what is exactly the system that prompt the pin / password of Luks in the bootprocess ? (so i can try to find a way to increase the timeout (if i cannot disable it).

My expectation would be that eliminating emergency mode wouldn’t do anything in that regard. You need to control the step you want to control.

do you have a timeout entered as specified here?

you are right, i jumped to the gun to disable what i seen, will check for a timeout, and if i cannot find one, do you think it’s possible to “shutdown” the computer at the end of it.

i think in my memory i had a linux that did that if i did not enter the luks password fast enough in the past.