Comment 7 for bug 2067503

Revision history for this message
Anton Troyanov (troyanov) wrote :

Hi Andrew,

Thats a good question and I don't think I have an answer :(

You can always repack the snap but that will require providing --dangerous flag during installation and I would not recommend this for production as you will lose automatic updates.

root@maas:/var/lib/snapd/snaps$ snap install maas
root@maas:/var/lib/snapd/snaps$ unsquashfs maas_xxx.snap
# do the changes and pack it back
root@maas:/var/lib/snapd/snaps$ snap pack ./squashfs-root
root@maas:/var/lib/snapd/snaps$ sudo snap install --dangerous maas_xxx.snap
root@maas:/var/lib/snapd/snaps$ snap connections maas | awk '$1 != "content" && $3 == "-" {print $2}' | xargs -r -n1 sudo snap connect
root@maas:/var/lib/snapd/snaps$ sudo maas init region+rack

Meanwhile maybe adding a bash-script wrapper will help you? Just sanitise CA file to remove non-ascii characters and call maas CLI?