From 927d0f2d27b77c75bc40e7ff034c9616fa8d74ac Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Wed, 3 Mar 2021 16:05:22 +0000 Subject: [PATCH] Packages in the ZFS send stream must not be marked as manually installed --- build/build_zfs_send | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/build_zfs_send b/build/build_zfs_send index 659d6ed..c6350c2 100755 --- a/build/build_zfs_send +++ b/build/build_zfs_send @@ -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() { @@ -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