installer: Fix mapper name generation for encrypted installation.
authorSascha Wildner <saw@online.de>
Sun, 13 Aug 2017 09:54:42 +0000 (11:54 +0200)
committerSascha Wildner <saw@online.de>
Sun, 13 Aug 2017 10:08:59 +0000 (12:08 +0200)
commit49cd743be136630cd5503cbb0226c580c2f1b0d9
tree375da17cbd26de582c034282f4fc1aabe75df260
parent44df547ccebff83429b2683675ace02e10c6f26c
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.
usr.sbin/installer/dfuibe_installer/fn_configure.c
usr.sbin/installer/dfuibe_installer/fn_install.c
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c