installer: Utilize dumpon(8) and swapoff(8) to turn off dump and swap.
authorSascha Wildner <saw@online.de>
Thu, 23 Sep 2010 09:43:06 +0000 (11:43 +0200)
committerSascha Wildner <saw@online.de>
Thu, 23 Sep 2010 09:43:31 +0000 (11:43 +0200)
commit9687cd2753d34cd91571932ad50ae1ba2378a7cb
tree9a121195c6851eb5c2468f226f74ea6e3af0ecb5
parentf3de36f7f33f6f7d244190d75cbb47427725b3e2
installer: Utilize dumpon(8) and swapoff(8) to turn off dump and swap.

Previously, the installer would block further installation attempts
once a swap was mounted. This was very inconvenient, e.g. when trying
to do multiple installs in one session.

It also never issued a 'dumpon off' causing dumping to be enabled
until rebooting. This caused issues upon reboot when a removable disk
(eSATA, for example) was unplugged before the reboot.

Now that we have swapoff(8), fix all these issues by turning off
dumping and swapping once the installation is completed (after
unmounting). Also, do this in a number of other places (where we
previously warned) to make sure it all gets deactivated again should
the user have cancelled a previous installation.
share/installer/cmdnames.conf
usr.sbin/installer/dfuibe_installer/flow.c
usr.sbin/installer/dfuibe_installer/fn_install.c
usr.sbin/installer/libinstaller/diskutil.c
usr.sbin/installer/libinstaller/diskutil.h