This file is indexed.

/lib/systemd/system/snappy-set-hostname.service 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
 8
 9
10
11
12
13
14
15
16
17
18
# Set the true hostname.
#
# systemd has already set the hostname when this unit executes (based on
# the original /etc/hostname).
#
# However, since that file is on the read-only rootfs and the real
# hostname is on the writable partition (/etc/writable bind-mount), it
# is necessary to reset the hostname as soon as the true hostname file
# is available.

[Unit]
Description=Set the hostname to the value stored on the writable partition
After=etc-writable.mount
DefaultDependencies=no

[Service]
Type=oneshot
ExecStart=/bin/hostname -F /etc/hostname