git: installer: Fix mapper name generation for encrypted installation.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Aug 13 03:09:29 PDT 2017


commit 54254bd5be5b12055020be885785efa4ea11eb6c
Author: Sascha Wildner <saw at online.de>
Date:   Sun Aug 13 11:54:42 2017 +0200

    installer: Fix mapper name generation for encrypted installation.
    
    fn_mapper_name() is supposed to take the mountpoint name, not the
    device name.
    
    This actually broke the install in environments where no /dev/serno/...
    device was available and both root and /build were selected for
    encrypting because the device name would never contain a '/' and so
    the mapper name 'root' was returned for both.

Summary of changes:
 usr.sbin/installer/dfuibe_installer/fn_configure.c      |  6 +++---
 usr.sbin/installer/dfuibe_installer/fn_install.c        | 12 ++++++------
 usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c |  4 ++--
 usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c    |  4 ++--
 4 files changed, 13 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/54254bd5be5b12055020be885785efa4ea11eb6c


-- 
DragonFly BSD source repository



More information about the Commits mailing list