From 6233a17ac99deb8d246458380813b621df2609bf Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 9 Jan 2024 19:52:04 +0100 Subject: 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. --- g13/g13-syshelp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g13/g13-syshelp.c') diff --git a/g13/g13-syshelp.c b/g13/g13-syshelp.c index 6a4d3a446..0de1cf15d 100644 --- a/g13/g13-syshelp.c +++ b/g13/g13-syshelp.c @@ -584,7 +584,7 @@ g13_syshelp_i_know_what_i_am_doing (void) if (gnupg_access (fname, F_OK)) { log_info ("*******************************************************\n"); - log_info ("* The G13 support for DM-Crypt is new and not matured.\n"); + log_info ("* The G13 support for DM-Crypt is not yet widely used.\n"); log_info ("* Bugs or improper use may delete all your disks!\n"); log_info ("* To confirm that you are ware of this risk, create\n"); log_info ("* the file '%s'.\n", fname); -- cgit v1.2.3