This file is indexed.

/etc/profile.d/snappy-oem-branding.sh is in ubuntu-core-config 0.6.40.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
5
6
7
#!/bin/sh

# generate oem specific prompt
if grep -q branding: /oem/*/*/meta/package.yaml 2>/dev/null; then
  NAME="$(grep -oPz 'branding:\n.*name:(.*)' /snap/*/*/meta/snap.yaml|tail -1|cut -d: -f2 | tr -d ' ' )"
  export debian_chroot="$NAME"
fi