the cleanest way is to check /etc/os-release, it has been changed to reflect 
ubuntu-core (iirc in the late 15.04 images) and will not change, so this should 
be the preferred way.
if you dont have rootfs access when needing the info, then parsing 
/proc/cmdline for snap_* vars should be ok too.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1689944

Title:
  util.system_is_snappy needs additional checks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1689944/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to