# HG changeset patch # User th199096 # Date 1175732819 25200 # Node ID abb9a4c15e2fe1efa706fc0b52d4054fa4f96b41 # Parent 3907054552798ff676d0bda3909c5eb38d53713e 6542481 No sharetab after BFU to get In-Kernel Sharetab bits diff -r 390705455279 -r abb9a4c15e2f usr/src/tools/scripts/bfu.sh --- a/usr/src/tools/scripts/bfu.sh Wed Apr 04 17:15:49 2007 -0700 +++ b/usr/src/tools/scripts/bfu.sh Wed Apr 04 17:26:59 2007 -0700 @@ -4143,7 +4143,18 @@ test -h platform/$archive && rm platform/$archive if [ $base = root ]; then exclude="-f dev/fd home proc etc/mnttab" - exclude="$exclude etc/dfs/sharetab" + + # + # We don't want to overwrite the sharetab if + # it is a mount-point. We assume it is a + # mount-point if it is not writable. + # + if [ -f etc/dfs/sharetab ]; then + if [ ! -w etc/dfs/sharetab ]; then + exclude="$exclude etc/dfs/sharetab" + fi + fi + [ -d system/contract ] && exclude="$exclude system/contract" [ -d system/object ] &&