[X2Go-Commits] [live-build-x2go] 29/108: removed umount in case of success, changed ro mount to rw

git-admin at x2go.org git-admin at x2go.org
Wed Mar 20 22:13:10 CET 2019


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 cb7dcfcf55b6371fcffead3d7de54035d0373fab
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Thu Feb 8 14:07:13 2018 +0100

    removed umount in case of success, changed ro mount to rw
---
 .../lib/live/config/2280-x2go-getportableappsessions               | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2280-x2go-getportableappsessions b/config/includes.chroot/lib/live/config/2280-x2go-getportableappsessions
index cedd90a..d352181 100755
--- a/config/includes.chroot/lib/live/config/2280-x2go-getportableappsessions
+++ b/config/includes.chroot/lib/live/config/2280-x2go-getportableappsessions
@@ -85,11 +85,10 @@ X2GoGetPortableAppSessions ()
 						echo -n "\n$(date +'%F | %T | ')'$0' Device '$NEXTDEVICE' is a fixed disk, mounting ..." | tee -a /dev/tty8
 						# obviously, we need a mountpoint for it ...
 						mkdir -p /media/fixeddisks/$NEXTDEVICE
-						# and now we can try to mount it. Let's do it in readonly mode, just to play it safe.
-						mount -o ro /dev/$NEXTDEVICE /media/fixeddisks/$NEXTDEVICE
+						# and now we can try to mount it.  Needs to be in rw mode, as in minidesktop mode, people might want to try to save back changes.
+						mount -/dev/$NEXTDEVICE /media/fixeddisks/$NEXTDEVICE
 						if check_for_config /media/fixeddisks/$NEXTDEVICE ; then
-							# we umount, then make a note that we succeeded ...
-							umount /media/fixeddisks/$NEXTDEVICE
+							# if we managed to pull a config off of it (or save one on it), we make a note of this ...
 							touch /var/lib/live/config/x2goportableappsessions
 							# and quit right here.
 							exit 0

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list