git: installer: Utilize dumpon(8) and swapoff(8) to turn off dump and swap.

Sascha Wildner saw at online.de
Thu Sep 23 02:55:07 PDT 2010


On 9/23/2010 11:43, Sascha Wildner wrote:
commit 9687cd2753d34cd91571932ad50ae1ba2378a7cb
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.
Note that the "panic when dumping is still active but the drive was 
unplugged" thing is still a real issue, even though the installer now no 
longer tickles it.

But on a normal system, the user can still get into this situation by 
manually producing it.

Sascha





More information about the Commits mailing list