Skip to content

Commit

Permalink
Merge pull request omniosorg#195 from citrus-it/autoremove
Browse files Browse the repository at this point in the history
Packages in the ZFS send stream must not be marked as manually installed
  • Loading branch information
oetiker authored Mar 4, 2021
2 parents 1dca1af + 927d0f2 commit 6d7b5e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/build_zfs_send
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# }}}

# Copyright 2017 OmniTI Computer Consulting, Inc. All rights reserved.
# Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
#

fail() {
Expand Down Expand Up @@ -57,6 +57,10 @@ if [ -z "$name" ]; then
exit
fi

# Setting this flag lets `pkg` know that this is an automatic install and
# that the installed packages should not be marked as 'manually installed'
export PKG_AUTOINSTALL=1

MPR=`zfs get -H mountpoint $ZROOT | awk '{print $3}'`
if [ -z "$OUT" ]; then
OUT=$MPR/kayak_$name.zfs.xz
Expand Down

0 comments on commit 6d7b5e3

Please sign in to comment.