From 2f5204c791431dd0687f42964d1f9678d7e81026 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Fri, 7 Dec 2012 15:03:36 +0200 Subject: [PATCH 1/4] TMP: swap --- installer/preinstall.d/11-remount.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer/preinstall.d/11-remount.sh b/installer/preinstall.d/11-remount.sh index 42eff1f..a82638e 100755 --- a/installer/preinstall.d/11-remount.sh +++ b/installer/preinstall.d/11-remount.sh @@ -4,6 +4,8 @@ ME=11-remount +# NB: use 'set -x' here to debug + exec 2>/tmp/"$ME".log >&2 . install2-init-functions @@ -24,6 +26,8 @@ if [ -f "$destdir/etc/lvm/lvm.conf" ]; then cp -p "$destdir/etc/lvm/lvm.conf" /etc/lvm fi +chroot "$destdir" swapoff -a + umount "$destdir/dev/pts" chroot "$destdir" umount -a @@ -80,4 +84,6 @@ mount -t sysfs sysfs "$destdir/sys" mount -t proc proc "$destdir/proc" chroot "$destdir" mount -a ||: +chroot "$destdir" swapon -a + # NB: use "sleep 3600" here to debug :) -- 1.7.12.4