git: installer(8): Distinguish setting and getting of encryption passphrase

Aaron LI aly at crater.dragonflybsd.org
Mon Feb 27 04:57:50 PST 2023


commit 242084fd773a8559267ade92aa9dab50f22aedbf
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Feb 26 19:59:54 2023 +0800

    installer(8): Distinguish setting and getting of encryption passphrase
    
    The installer was using the *same* dialog to set and get the passphrase
    for filesystem encryption/decryption, which was confusing and a bit
    inconvenience (because the passphrase was required to input twice for
    decryption).
    
    The decryption passphrase was get in the following two places:
    1. Just after installation and begins to configure the system, the
       passphrase is asked to decrypt and mount the filesystems;
    2. Use the LiveCD to "Configure an installed System".
    
    This commit improves the fn_get_passphrase() function to distinguish the
    setting and getting of the encryption passphrase.  The dialog of setting
    the passphrase remains the same, but the dialog of getting the
    passphrase is simplified and doesn't require to confirm the input.
    
    This commit is derived from the patch by tuxillo.
    
    Bug: https://bugs.dragonflybsd.org/issues/3028

Summary of changes:
 usr.sbin/installer/dfuibe_installer/fn.h           |  2 +-
 usr.sbin/installer/dfuibe_installer/fn_configure.c | 74 +++++++++++++++-------
 .../installer/dfuibe_installer/fn_subpart_hammer.c |  4 +-
 .../installer/dfuibe_installer/fn_subpart_ufs.c    |  4 +-
 4 files changed, 55 insertions(+), 29 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/242084fd773a8559267ade92aa9dab50f22aedbf


-- 
DragonFly BSD source repository


More information about the Commits mailing list