Skip to content

Commit 5f691c2

Browse files
docs: add tty:@Console to switch-root LUKS example
1 parent facb5c4 commit 5f691c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

doc/switchroot.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ For more complex setups (LUKS, LVM, etc.):
6161

6262
```
6363
# Unlock LUKS volume
64-
run [S] name:cryptsetup /sbin/cryptsetup open /dev/sda2 cryptroot -- Unlocking encrypted root
64+
# The tty:@console stanza is required so cryptsetup can prompt for a passphrase
65+
run [S] name:cryptsetup tty:@console /sbin/cryptsetup open /dev/sda2 cryptroot -- Unlocking encrypted root
6566
6667
# Activate LVM
6768
run [S] name:lvm /sbin/lvm vgchange -ay -- Activating LVM volumes

0 commit comments

Comments
 (0)