formatting of usb-automount file
This commit is contained in:
parent
4b9263c54f
commit
8356332e0f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue