From 8d79c281977cf77c69ee5f36fbb57cdba66cebb1 Mon Sep 17 00:00:00 2001 From: Tails developers Date: Tue, 21 Oct 2014 12:00:35 +0200 Subject: [PATCH] Bail out properly due to chroot mount errors. --- .../usr/local/lib/tails-shell-library/chroot-browser.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/chroot_local-includes/usr/local/lib/tails-shell-library/chroot-browser.sh b/config/chroot_local-includes/usr/local/lib/tails-shell-library/chroot-browser.sh index 4c51cb1396..3dbbb269ca 100644 --- a/config/chroot_local-includes/usr/local/lib/tails-shell-library/chroot-browser.sh +++ b/config/chroot_local-includes/usr/local/lib/tails-shell-library/chroot-browser.sh @@ -62,7 +62,8 @@ setup_browser_chroot () { mount -t tmpfs tmpfs ${cow} && \ mount -t aufs -o "noatime,noxino,dirs=${aufs_dirs}" aufs ${chroot} && \ mount -t proc proc ${chroot}/proc && \ - mount --bind /dev ${chroot}/dev + mount --bind /dev ${chroot}/dev || \ + return 1 # Workaround for #6110 chmod -t ${cow} -- GitLab