Mercurial > illumos > illumos-gate
changeset 3968:abb9a4c15e2f
6542481 No sharetab after BFU to get In-Kernel Sharetab bits
author | th199096 |
---|---|
date | Wed, 04 Apr 2007 17:26:59 -0700 |
parents | 390705455279 |
children | 53c82f760f32 |
files | usr/src/tools/scripts/bfu.sh |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 ] &&