mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
Using a fifo pipe and a goroutine with "cryptsetup luksAddKey" is unnecessary, as both the existing key and the new key can be provided via stdin to cryptsetup. Additionally, this add the --batch-mode option when calling cryptsetup so warnings printed by cryptsetup in 23.10 do not mess the parsing of the returned message. Fixes LP#2036631, being this an alternative solution to [1] (although the latter would still need to use the --batch-mode option). [1] https://github.com/snapcore/snapd/pull/12935