2015-08-04 15:21:05 |
Ben Howard |
description |
Standard methods of determining the OS does not distinguish between regular Ubuntu and Snappy.
(amd64)ubuntu@ip-10-0-129-208:~$ snappy list
Name Date Version Developer
ubuntu-core 2015-07-29 4 ubuntu
docker 2015-08-03 1.6.1.002 canonical
generic-amd64 2015-07-29 1.4 canonical
(amd64)ubuntu@ip-10-0-129-208:~$ lsb_release -c
Codename: vivid
(amd64)ubuntu@ip-10-0-129-208:~$ python -c 'import platform; print(platform.dist())'
('Ubuntu', '15.04', 'vivid') |
Standard methods of determining the OS does not distinguish between regular Ubuntu and Snappy.
(amd64)ubuntu@ip-10-0-129-208:~$ snappy list
Name Date Version Developer
ubuntu-core 2015-07-29 4 ubuntu
docker 2015-08-03 1.6.1.002 canonical
generic-amd64 2015-07-29 1.4 canonical
(amd64)ubuntu@ip-10-0-129-208:~$ lsb_release -c
Codename: vivid
(amd64)ubuntu@ip-10-0-129-208:~$ python -c 'import platform; print(platform.dist())'
('Ubuntu', '15.04', 'vivid')
Ideally, we should have:
1. lsb_release should denote it is a snappy variant and disclose the channel, i.e
$ lsb_release --all
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid
Variant: ubuntu-core
Channel: stable
2. Provide Python interface to determine if something is Snappy. |
|