Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Unified Diff: build/install-chroot.sh

Issue 9500022: Make chroot setup work better with NFS home dirs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sed cleanups Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/install-chroot.sh
diff --git a/build/install-chroot.sh b/build/install-chroot.sh
index b80aea0fd52b9819f49be35089de750151a4767a..72dcec97c2fff194e8fe9135a946db70bcb4c323 100755
--- a/build/install-chroot.sh
+++ b/build/install-chroot.sh
@@ -203,7 +203,9 @@ EOF
sed '/^FSTAB=/s,/mount-defaults",/mount-'"${target}"'",' \
/etc/schroot/script-defaults |
sudo sh -c 'cat >/etc/schroot/script-'"${target}"
-sudo cp /etc/schroot/mount-defaults /etc/schroot/mount-"${target}"
+sed '\,^/home[/[:space:]],s/\([,[:space:]]\)bind[[:space:]]/\1rbind /' \
+ /etc/schroot/mount-defaults |
+ sudo sh -c 'cat > /etc/schroot/mount-'"${target}"
echo "$HOME/chroot/.${target} $HOME/chroot none rw,bind 0 0" |
sudo sh -c 'cat >>/etc/schroot/mount-'"${target}"
mkdir -p "$HOME/chroot/.${target}"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698