Skip to content

Commit

Permalink
#140 fix zpool names in brand scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwilsdon committed Dec 18, 2012
1 parent 3ec1ea2 commit 6acf595
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions overlay/generic/usr/lib/brand/joyent-minimal/common.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ final_setup()
# samples from JPC.
rm -rf $ZONEPATH/cores
CORE_QUOTA=102400
zfs create -o quota=${CORE_QUOTA}m -o mountpoint=/zones/$bname/cores \
zones/cores/$bname
zfs create -o quota=${CORE_QUOTA}m -o mountpoint=/${PDS_NAME}/$bname/cores \
${PDS_NAME}/cores/$bname

chmod 700 $ZONEPATH

Expand Down
2 changes: 1 addition & 1 deletion overlay/generic/usr/lib/brand/joyent-minimal/juninstall
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fi

ORIGIN=`zfs get -H -ovalue origin $PDS_NAME/$bname`

zfs destroy -rF zones/cores/$bname
zfs destroy -rF $PDS_NAME/cores/$bname
zfs destroy -rF $PDS_NAME/$bname
(( $? != 0 )) && (echo "processes in zone: " && fuser $ZONEPATH)

Expand Down
4 changes: 2 additions & 2 deletions overlay/generic/usr/lib/brand/joyent/common.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ final_setup()
# samples from JPC.
rm -rf $ZONEPATH/cores
CORE_QUOTA=102400
zfs create -o quota=${CORE_QUOTA}m -o mountpoint=/zones/$bname/cores \
zones/cores/$bname
zfs create -o quota=${CORE_QUOTA}m -o mountpoint=/${PDS_NAME}/$bname/cores \
${PDS_NAME}/cores/$bname

chmod 700 $ZONEPATH

Expand Down
2 changes: 1 addition & 1 deletion overlay/generic/usr/lib/brand/joyent/juninstall
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fi

ORIGIN=`zfs get -H -ovalue origin $PDS_NAME/$bname`

zfs destroy -rF zones/cores/$bname
zfs destroy -rF $PDS_NAME/cores/$bname
zfs destroy -rF $PDS_NAME/$bname
(( $? != 0 )) && (echo "processes in zone: " && fuser $ZONEPATH)

Expand Down
4 changes: 2 additions & 2 deletions overlay/generic/usr/lib/brand/kvm/common.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ final_setup()
# such that it will protect the system from a single run-away, but
# still allow us to get most cores.
rm -rf $ZONEPATH/cores
zfs create -o quota=${CORE_QUOTA}m -o mountpoint=/zones/$bname/cores \
zones/cores/$bname
zfs create -o quota=${CORE_QUOTA}m -o mountpoint=/${PDS_NAME}/$bname/cores \
${PDS_NAME}/cores/$bname
}
2 changes: 1 addition & 1 deletion overlay/generic/usr/lib/brand/kvm/kuninstall
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ done

ORIGIN=`zfs get -H -ovalue origin $PDS_NAME/$bname`

zfs destroy -rF zones/cores/$bname
zfs destroy -rF $PDS_NAME/cores/$bname
zfs destroy -rF $PDS_NAME/$bname
[ "$ORIGIN" != "-" ] && zfs destroy -F $ORIGIN

Expand Down

0 comments on commit 6acf595

Please sign in to comment.