# These are shell libraries, sourced by the entry point and by hooks, never
# executed. They carry a #!/bin/bash line for editors and shellcheck, not
# because anything runs them. Making them executable would be the wrong fix.
rpi-image-gen: script-not-executable [usr/share/rpi-image-gen/lib/cli.sh]
rpi-image-gen: script-not-executable [usr/share/rpi-image-gen/lib/common.sh]
rpi-image-gen: script-not-executable [usr/share/rpi-image-gen/lib/dependencies.sh]
rpi-image-gen: script-not-executable [usr/share/rpi-image-gen/lib/tools.sh]

# Payload for the image being built, not for this host. The dracut
# module-setup.sh files are sourced by dracut inside the target, the profile.d
# fragment is sourced by the target's shells, and hwkey is read by the
# cryptroot device layer. None of them is executed from /usr/share.
rpi-image-gen: script-not-executable [usr/share/rpi-image-gen/builtin/device/cryptroot/hwkey]
rpi-image-gen: script-not-executable [usr/share/rpi-image-gen/image/mbr/simple_dual/image.d/device/dracut.modules.d/95rpi-image-rpios/module-setup.sh]
rpi-image-gen: script-not-executable [usr/share/rpi-image-gen/layer/base/device-user-admin.d/customize.overlay/etc/profile.d/01local.sh]
rpi-image-gen: script-not-executable [usr/share/rpi-image-gen/layer/rpi/device/slot-mapper/dracut/modules.d/90rpi-ab-root/module-setup.sh]
rpi-image-gen: script-not-executable [usr/share/rpi-image-gen/layer/rpi/device/slot-mapper/dracut/modules.d/90rpi-ab-root/root-check.sh]

# These hooks run inside the chroot being built, where they inspect the
# target's dpkg database to decide whether dracut or initramfs-tools is the
# one to invoke. They are not reading this host's database, and the dpkg
# frontends are not a substitute for what they need.
rpi-image-gen: uses-dpkg-database-directly [usr/share/rpi-image-gen/builtin/hooks/customize60-dracut]
rpi-image-gen: uses-dpkg-database-directly [usr/share/rpi-image-gen/builtin/hooks/customize60-initramfs-tools]

# Unit files installed into the image being built, not into this host, so
# there is no manual page for them to point at.
rpi-image-gen: systemd-service-file-missing-documentation-key [usr/share/rpi-image-gen/image/gpt/ab_userdata/image.d/postbuild.overlay/etc/systemd/system/machine-id-sync.service]
rpi-image-gen: systemd-service-file-missing-documentation-key [usr/share/rpi-image-gen/image/gpt/ab_userdata/image.d/postbuild.overlay/etc/systemd/system/persistent-shared-init.service]
rpi-image-gen: systemd-service-file-missing-documentation-key [usr/share/rpi-image-gen/layer/net-misc/openssh-server.d/customize.overlay/usr/lib/systemd/system/ssh-hostkeys-generate.service]

# Copied verbatim into the target's /etc/apt/trusted.gpg.d, where apt expects
# this name and this format. Renaming or re-armouring them here would break
# the images this package exists to build.
rpi-image-gen: openpgp-file-has-implementation-specific-extension [usr/share/rpi-image-gen/keydir/raspberrypi-archive-keyring.gpg]
rpi-image-gen: openpgp-file-has-implementation-specific-extension [usr/share/rpi-image-gen/keydir/raspbian-archive-keyring.gpg]

# Overlay trees are laid out as the target filesystem, so a path under
# /usr/share/rpi-image-gen that ends in etc/rpi-image-gen or usr/ is the
# target's, and repeats a segment only by coincidence. Listed one by one on
# purpose: a blanket wildcard here would also hide the tree being installed
# at the wrong depth, which is the thing this tag is actually good for.
rpi-image-gen: repeated-path-segment rpi-image-gen [usr/share/rpi-image-gen/layer/net-misc/network-manager.d/customize.overlay/etc/rpi-image-gen/]
rpi-image-gen: repeated-path-segment rpi-image-gen [usr/share/rpi-image-gen/layer/net-misc/openssh-server.d/customize.overlay/etc/rpi-image-gen/]
rpi-image-gen: repeated-path-segment rpi-image-gen [usr/share/rpi-image-gen/layer/net-wireless/bluez.d/customize.overlay/etc/rpi-image-gen/]
rpi-image-gen: repeated-path-segment rpi-image-gen [usr/share/rpi-image-gen/layer/net-wireless/iwd-systemd.d/customize.overlay/etc/rpi-image-gen/]
rpi-image-gen: repeated-path-segment usr [usr/share/rpi-image-gen/image/gpt/ab_userdata/image.d/postbuild.overlay/usr/]
rpi-image-gen: repeated-path-segment usr [usr/share/rpi-image-gen/layer/net-misc/openssh-server.d/customize.overlay/usr/]
rpi-image-gen: repeated-path-segment usr [usr/share/rpi-image-gen/layer/rpi/device/family-secpolicy-base.d/customize.overlay/usr/]

# This package is not in Debian and has no ITP bug to close.
rpi-image-gen: initial-upload-closes-no-bugs
