From 142e452d37b6aef7cba574355b30d128ea68c0a7 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Fri, 29 Oct 2010 11:58:15 -0700 Subject: [PATCH] Fixing of the symlinks isn't being called because rootfs is being remounted ro. This is being remounted ro in cros_make_image_bootable so I should be checking for the stateful mount pt not the rootfs mountpt Change-Id: I1ee64489516fae10a6246c5d79236c8b5df090ee BUG=8116 TEST=Ran it and ran bin/cros_start vm and inspected /usr/local Review URL: http://codereview.chromium.org/4148013 --- mount_gpt_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mount_gpt_image.sh b/mount_gpt_image.sh index cf623a44ab..63dba3d8b6 100755 --- a/mount_gpt_image.sh +++ b/mount_gpt_image.sh @@ -47,7 +47,7 @@ function unmount_image() { # Don't die on error to force cleanup set +e # Reset symlinks in /usr/local. - if mount | egrep ".* ${FLAGS_rootfs_mountpt} .*\(rw,"; then + if mount | egrep ".* ${FLAGS_stateful_mountpt} .*\(rw,"; then setup_symlinks_on_root "/usr/local" "/var" \ "${FLAGS_stateful_mountpt}" fix_broken_symlinks "${FLAGS_rootfs_mountpt}"