[X2Go-Commits] [live-build-x2go] 74/167: when trying to find the right storage device to deploy an update to in ramdisk mode, use read-only mounts at first
git-admin at x2go.org
git-admin at x2go.org
Sat Nov 18 00:32:45 CET 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch feature/openbox-magic-pixel-workaround
in repository live-build-x2go.
commit 6932c2f23abe022b25a5af2c9f17c6054aa9196b
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Mon Jul 24 20:03:56 2017 +0200
when trying to find the right storage device to deploy an update to in ramdisk mode, use read-only mounts at first
---
config/includes.chroot/lib/live/config/2400-live-autoupdate | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/config/includes.chroot/lib/live/config/2400-live-autoupdate b/config/includes.chroot/lib/live/config/2400-live-autoupdate
index 0ec265a..3f1e0fd 100755
--- a/config/includes.chroot/lib/live/config/2400-live-autoupdate
+++ b/config/includes.chroot/lib/live/config/2400-live-autoupdate
@@ -91,14 +91,14 @@ echo -n " live-autoupdater (backgrounding update task)"
FINDFILE=$(cat /proc/cmdline | tr " " "\n" | awk -F '=' '$1 == "findiso" { print $2 }')
[ -z "$FINDFILE" ] && exit 0
for PARTITION in $LISTOFPARTITIONS ; do
- mount $PARTITION $TEMPMOUNT
+ mount -oro $PARTITION $TEMPMOUNT
if ! [ -f "$TEMPMOUNT/$FINDFILE" ] ; then
umount $TEMPMOUNT
else
umount $TEMPMOUNT
rmdir $TEMPMOUNT
mkdir /lib/live/mount/findiso
- if mount $PARTITION /lib/live/mount/findiso ; then
+ if mount -oro $PARTITION /lib/live/mount/findiso ; then
echo "\n$(date +'%F | %T | ')'$0': mounted $PARTITION as '/lib/live/mount/findiso'."
RAMDISKMODE="yes"
else
--
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