mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-15 23:51:35 +01:00
Fix egrep for checking for rw/ro.
Right now we're not fixing symlinks because mount_gpt_image thinks it's mounted ro. Change-Id: Ie61536cd8d7bc276831c488e7ab892db14b05a94 BUG=8116 TEST=Mounted image from device and locally with both rw, and ro options. Review URL: http://codereview.chromium.org/4048006
This commit is contained in:
parent
e2dae7e751
commit
3b44f34de7
@ -47,7 +47,7 @@ function unmount_image() {
|
||||
# Don't die on error to force cleanup
|
||||
set +e
|
||||
# Reset symlinks in /usr/local.
|
||||
if mount | grep "${FLAGS_rootfs_mountpt} (rw,bind)"; then
|
||||
if mount | egrep ".* ${FLAGS_rootfs_mountpt} .*\(rw,"; then
|
||||
setup_symlinks_on_root "/usr/local" "/var" \
|
||||
"${FLAGS_stateful_mountpt}"
|
||||
fix_broken_symlinks "${FLAGS_rootfs_mountpt}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user