Skip to content

Commit

Permalink
meta-lxatac-software: lxatac-core-bundle-base: migrate /etc/hostname
Browse files Browse the repository at this point in the history
We set default hostnames based on the serial number of the LXA TAC,
(e.g. lxatac-00011) which is a sensible thing to do.

But users may want to set their own hostnames due to constraints of
their infrastructure or just personal preference.

Enable them to do so persistently across RAUC updates.

Signed-off-by: Leonard Göhrs <[email protected]>
  • Loading branch information
hnez committed Feb 23, 2024
1 parent 701ea07 commit 682df57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meta-lxatac-software/recipes-core/bundles/files/hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ case "$1" in
# installing from an eMMC image.
rm -f "${RAUC_SLOT_MOUNT_POINT}/system-update"

migrate /etc/hostname
migrate /etc/machine-id
migrate /etc/labgrid/environment
migrate /etc/labgrid/userconfig.yaml
Expand Down

0 comments on commit 682df57

Please sign in to comment.