formatting of usb-automount file

This commit is contained in:
Chaos 2022-12-14 10:11:51 +00:00
parent 4b9263c54f
commit 8356332e0f
No known key found for this signature in database

View file

@ -6,6 +6,7 @@
cat /secrets/usb_encryption_passphrase | cryptsetup luksOpen ${usb_data.encrypted_path} ${usb_data.mapper_name}_afterboot -
mount ${usb_data.mapper_path}_afterboot -o rw ${usb_data.mountpoint}
'';
enc_usb_unmount = pkgs.writeShellScriptBin "enc_usb_unmount" ''
set -x
umount -flR ${usb_data.mountpoint} || true