git: installer: Utilize dumpon(8) and swapoff(8) to turn off dump and swap.
swildner at crater.dragonflybsd.org
Thu Sep 23 02:45:11 PDT 2010
Author: Sascha Wildner <saw at online.de>
Date: Thu Sep 23 11:43:06 2010 +0200
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.
Summary of changes:
share/installer/cmdnames.conf | 2 +
usr.sbin/installer/dfuibe_installer/flow.c | 59 ++-------------------
usr.sbin/installer/dfuibe_installer/fn_install.c | 6 ++
usr.sbin/installer/libinstaller/diskutil.c | 17 ++++++
usr.sbin/installer/libinstaller/diskutil.h | 1 +
5 files changed, 32 insertions(+), 53 deletions(-)
DragonFly BSD source repository
More information about the Commits