[X2Go-Commits] [live-build-x2go] 81/160: in ramdisk mode, storage should be umounted at the end of an (attempted) upgrade

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 01:55:45 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/openbox
in repository live-build-x2go.

commit 49c3dd3c2a3c9bffe3d3ecb1ea775f9386e0a390
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Tue Jul 25 09:45:57 2017 +0200

    in ramdisk mode, storage should be umounted at the end of an (attempted) upgrade
---
 config/includes.chroot/lib/live/config/2400-live-autoupdate | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2400-live-autoupdate b/config/includes.chroot/lib/live/config/2400-live-autoupdate
index b384aec..c93cd53 100755
--- a/config/includes.chroot/lib/live/config/2400-live-autoupdate
+++ b/config/includes.chroot/lib/live/config/2400-live-autoupdate
@@ -4,7 +4,7 @@
 
 umount_or_remount_ro ()
 { # change mount back to ro and sync
-	if [ -n "$NTFSROOT" ]; then
+	if [ -n "$NTFSROOT" ] || [ -n "$RAMDISKMODE" ] ; then
 		if umount $MOUNTPOINT; then
 			echo "\n$(date +'%F | %T | ')'$0': Unmounted '$MOUNTPOINT'."
 		else
@@ -16,9 +16,6 @@ umount_or_remount_ro ()
 		else
 			echo "\n$(date +'%F | %T | ')'$0': Unable to remount '$MOUNTPOINT' ro and sync."
 		fi
-		if [ -n "$RAMDISKMODE" ] ; then
-			umount $MOUNTPOINT
-		fi
 	fi
 
 }

--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list