#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# OSNet-specific pkglint(1) checks, called as part of pkglint commands in
#
"""An osnet-specific class to check actions."""
self.description = _(
"checks OS Net packages for common action errors")
"""Check that we only deliver directories to /var/.migrate.
During filesystem/minimal, a script runs to migrate unpackaged
dataset.
are moved. If packaged objects were delivered under
/var/.migrate then subsequently migrated, they would cause
Ensure /var/.migrate entries that have a salvage-from attribute
also have an actuator (needed for self-assembly of ROZR zones
in particular)
"""
return
return
"delivered to /var/.migrate by %(pkg)s") %
if seen_salvage_from and not seen_actuator:
"have a reboot-needed actuator when 'salvage-from'"
" is set in %(pkg)s") %
varmigrate.pkglint_desc = _(
"Only directories should be delivered to /var/.migrate")
During upgrade, from a system without an <rpool>/VARSHARE
dataset, we create that dataset and mount it there - a populated
mountpoint would foil our plans.
boot environments, we can't risk packaging operations from two
separate boot environments trying to modify content in
"""
return
"%(pkg)s, reserved for unpackaged content shared "
"across boot environments.") %
varshare.pkglint_desc = _(