mount - Generate correct argv[0] for crunches
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 10 Apr 2014 01:12:43 +0000 (18:12 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 10 Apr 2014 01:15:12 +0000 (18:15 -0700)
commit52a811da0940a872d8e3d94b30737348cfe72964
tree97718b4528a9824f2a071c4695e1ce586ab080f6
parent71ed69eec97cfbadb43d16fcf5aabb827026415d
mount - Generate correct argv[0] for crunches

* The crunchgen consolidated binary uses argv[0] to determine which program
  to actually run.  The 'mount' program was putting the vfstype in argv[0]
  instead of "mount_<vfstype>".

* This caused crunchgen to run 'hammer' instead of 'mount_hammer'.

* Fixes installer encrypted installs with hammer roots.
sbin/mount/mount.c