When I start a new Arch Linux container, I always do a couple of the same things no matter what:
- Install sudo and create sudo group
- Modify /etc/sudoers
- Create a new user
- Give the user a new password
Is there a way to automate this process via lxd? My first thought was to create a template image and use that, but the image would get stale pretty fast given Arch’s rolling releases. My other thought was to use
file push to run a script in the new container, but that still requires at least some manual intervention (though admittedly not very much).
How is this normally handled?