diff options
author | Werner Koch <[email protected]> | 2024-01-09 18:52:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-01-09 18:52:04 +0000 |
commit | 6233a17ac99deb8d246458380813b621df2609bf (patch) | |
tree | a15a5797bf8cb809353e3e1086933563555d9245 /common/status.h | |
parent | gpg: Print a useful error id SKI algo 253 is found. (diff) | |
download | gnupg-6233a17ac99deb8d246458380813b621df2609bf.tar.gz gnupg-6233a17ac99deb8d246458380813b621df2609bf.zip |
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.
Diffstat (limited to 'common/status.h')
-rw-r--r-- | common/status.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/status.h b/common/status.h index e4cf23ee1..d249174d1 100644 --- a/common/status.h +++ b/common/status.h @@ -152,6 +152,7 @@ enum STATUS_TRUNCATED, STATUS_MOUNTPOINT, STATUS_BLOCKDEV, + STATUS_PLAINDEV, /* The decrypted virtual device. */ STATUS_PINENTRY_LAUNCHED, |