Permalink
Browse files

OS-1509 fs-usr method should only skip smf repository backup in GZ

  • Loading branch information...
1 parent 2ce6d74 commit 510dad18f60054fdbb7355472aaa2407ccf6c98d @jjelinek jjelinek committed Aug 30, 2012
Showing with 7 additions and 8 deletions.
  1. +7 −8 overlay/generic/lib/svc/method/fs-usr
@@ -20,18 +20,17 @@
# CDDL HEADER END
#
#
-# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T.
-# All rights reserved.
-#
+# Copyright 2012, Joyent, Inc. All rights reserved.
#
. /lib/svc/share/smf_include.sh
mount /dev/fd
-# svc.startd makes a backup of the repo on boot. Since this is a live-image,
-# the backup takes up an unnecessary 4MB in memory, so remove it now.
-rm -f /etc/svc/repository-*
+if smf_is_globalzone; then
+ # svc.startd makes a backup of the repo on boot. Since this is a
+ # live-image, the backup takes up an unnecessary 4MB in memory, so remove
+ # it now.
+ rm -f /etc/svc/repository-*
+fi
exit $SMF_EXIT_OK

0 comments on commit 510dad1

Please sign in to comment.