From 6b183a02208e7b11261b9262ce5cbb8de18b2eb2 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 27 Jan 2024 18:09:04 +0800 Subject: [PATCH] docs: change LUKS Key --- nixos-installer/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nixos-installer/README.md b/nixos-installer/README.md index 847ad045..799c0bac 100644 --- a/nixos-installer/README.md +++ b/nixos-installer/README.md @@ -260,3 +260,18 @@ just hypr ``` Finally, to enable secure boot, follow the instructions in [lanzaboote - Quick Start](https://github.com/nix-community/lanzaboote/blob/master/docs/QUICK_START.md) and [nix-config/ai/secure-boot.nix](https://github.com/ryan4yin/nix-config/blob/main/hosts/idols_ai/secureboot.nix) + + + +## Change LUKS2's passphrase + +```bash +# test the old passphrase +sudo cryptsetup --verbose open --test-passphrase /path/to/dev/ + +# change the passphrase +sudo cryptsetup luksChangeKey /path/to/dev/ + +# test the new passphrase +sudo cryptsetup --verbose open --test-passphrase /path/to/dev/ +```