Switch from device name to partition UUID

Using partition UUID is safer than device name as it prevents accidental
erasure of incorrect devices should the device names change.
This commit is contained in:
inference 2024-02-13 02:14:52 +00:00
parent 0a462c791f
commit 2522dcdb59
Signed by: inference
SSH Key Fingerprint: SHA256:FtEVfx1CmTKMy40VwZvF4k+3TC+QhCWy+EmPRg50Nnc

View File

@ -1,6 +1,6 @@
# Inferencium - aa000-0
# dm-crypt - Configuration
# Version: 3.0.0-alpha.2
# Version: 3.0.0-alpha.3
# Copyright 2023 Jake Winters
# SPDX-License-Identifier: BSD-3-Clause
@ -18,6 +18,6 @@ dmcrypt_retries="5"
# swap
## These should come first so no keys make their way into unencrypted swap.
swap="swap"
source="/dev/nvme0n1p2"
source="PARTUUID=[REDACTED]"
options="--cipher aes-xts-plain64 --size 512 --key-file /dev/urandom"