Skip to content

Commit cced398

Browse files
committed
Update files
1 parent 83a96c5 commit cced398

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

images_yaml/openwrt.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,21 @@ targets:
8181
lxc.arch = {{ image.architecture_kernel }}
8282
8383
files:
84-
- path: /etc/hostname
85-
generator: hostname
86-
87-
- path: /etc/hosts
88-
generator: hosts
89-
9084
- generator: incus-agent
9185
types:
9286
- vm
9387

88+
- name: uci-defaults-hostname.incus
89+
path: /etc/uci-defaults/00-incus-set-hostname
90+
generator: template
91+
template:
92+
when:
93+
- create
94+
- rename
95+
content: |
96+
uci -q set system.@system[0].hostname='{{ container.name }}'
97+
exit 0
98+
9499
- path: /etc/config/network
95100
generator: dump
96101
content: |-
@@ -169,10 +174,6 @@ actions:
169174
sed -i 's/procd_add_jail/: \0/g' /etc/init.d/dnsmasq
170175
# Disable conflicting sysntpd service to avoid crash loop
171176
rm -f /etc/rc.d/*sysntpd
172-
releases:
173-
- snapshot
174-
- 24.10
175-
- 25.12
176177
types:
177178
- container
178179

0 commit comments

Comments
 (0)