Fix a bug in the installer.
authorMatthias Schmidt <matthias@dragonflybsd.org>
Tue, 13 Jan 2009 17:51:54 +0000 (18:51 +0100)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Tue, 13 Jan 2009 17:58:30 +0000 (18:58 +0100)
commitb3c5854c32068e6930b8bb6ae35d596768247280
treea3f7308569bf503b58f63ad50e9bf62b1265e604
parent20d551094218df05ecb04d1459c3bbc23fc8ae2e
Fix a bug in the installer.

The installer tried to unmount all mount points in order (e.g. /var/tmp
should be unmounted before /var).  The code had a bug which prevent it from
doing it correctly.  It seems that nobody noticed the bug, because the default
file system layout does not suggest subdir mounts.  With the introduction of
PFS and subdir mounts (e.g. a /var/crash PFS), the bug showed up.

Simplify the code a bit and sort the mounted file systems in reverse
lexicographical order.

In-collab-with: mneumann@
contrib/bsdinstaller-1.1.6/src/lib/libinstaller/mount.c