Skip to content

Commit acf1f5c

Browse files
authored
Fix permissions for lxd images as well (#75)
1 parent 7aadf20 commit acf1f5c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

environment/image_recipes/bare_metal/bare_metal.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484

8585
"echo 'Add image version file to image'",
8686
"echo '{\"active_version\": \"{{ user `image_name` }}\"}' | tee -a /home/{{ user `username` }}/.ota.json",
87+
88+
"echo 'Fix permissions in the home directory'",
8789
"chown -R {{ user `username` }}:{{ user `username` }} /home/{{ user `username` }}",
8890

8991
"echo 'Remove unused space on the image'",

environment/image_recipes/lxd/lxd.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@
8484

8585
"echo 'Add image version file to image'",
8686
"echo '{\"active_version\": \"{{ user `image_name` }}\"}' | tee -a /home/{{ user `username` }}/.ota.json",
87-
"chown {{ user `username` }}:{{ user `username` }} /home/{{ user `username` }}/.ota.json",
87+
88+
"echo 'Fix permissions in the home directory'",
89+
"chown -R {{ user `username` }}:{{ user `username` }} /home/{{ user `username` }}",
8890

8991
"echo 'Remove unused space on the image'",
9092
"dd if=/dev/zero of=/EMPTY bs=1M || true",

0 commit comments

Comments
 (0)