Skip to content

Commit

Permalink
hooks: override default groups by cloud-init to only mention extrause…
Browse files Browse the repository at this point in the history
…r groups
  • Loading branch information
Meulengracht committed Apr 23, 2024
1 parent 15ac555 commit f0b9468
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hooks/032-cloud-init.chroot
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -eu

# add override the default groups to lxd, as the rest cannot be modified on ubuntu-core
sed -i '/\ \ \ \ \ lock_passwd: True/a\ \ \ \ \ groups: [lxd]' etc/cloud/cloud.cfg.d/10_snappy.cfg

0 comments on commit f0b9468

Please sign in to comment.