Home GnuPG
Diffusion GnuPG 6233a17ac99d

g13: New option --no-mount.

Description

g13: New option --no-mount.

* g13/g13.c (oNoMount): New.
(opts): Add --no-mount.
(main): Implement this.
* g13/g13-common.h (opt): Add field no_mount.
* common/status.h (STATUS_PLAINDEV): New.
* g13/sh-cmd.c (has_option): Uncomment.
(cmd_mount): Add option --no-mount and pass down.
* g13/sh-dmcrypt.c (sh_dmcrypt_mount_container): Add arg nomount and
emit PLAINDEV status line.
(sh_dmcrypt_umount_container): Rund findmnt before umount.

This option can be used to decrypt a device but not to mount it. For
example to run fsck first. A command or option to run fsck before a
mount will eventually be added.

The use of findmnt is needed so that we can easily remove a device
which has not been mounted.

Details

Provenance
wernerAuthored on Jan 9 2024, 7:52 PM
Parents
rG4ca017e43bb2: gpg: Print a useful error id SKI algo 253 is found.
Branches
Unknown
Tags
Unknown