mirror of
https://github.com/gryf/boxpy.git
synced 2026-03-25 14:43:32 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a75739cee1 | |||
| cd1dc310c7 | |||
| 295fb59101 |
@@ -48,11 +48,12 @@ Tested distros
|
||||
- Centos Stream
|
||||
- 8
|
||||
- 9
|
||||
- 10
|
||||
- Debian
|
||||
- 10 (buster)
|
||||
- 11 (bullseye)
|
||||
- 12 (bookworm)
|
||||
- 13 (trixie) - prerelease
|
||||
- 13 (trixie)
|
||||
|
||||
There is possibility to use whatever OS image which supports cloud-init. Use
|
||||
the ``--image`` param for ``create`` command to pass image filename, although
|
||||
@@ -78,7 +79,7 @@ You'll have ``boxpy`` command created for you as well.
|
||||
.. code:: shell-session
|
||||
|
||||
$ boxpy -V
|
||||
boxpy 1.9.2
|
||||
boxpy 1.11.3
|
||||
|
||||
Other option is simply link it somewhere in the path:
|
||||
|
||||
|
||||
14
box.py
14
box.py
@@ -18,7 +18,7 @@ import requests
|
||||
import yaml
|
||||
|
||||
|
||||
__version__ = "1.11.2"
|
||||
__version__ = "1.11.3"
|
||||
|
||||
CACHE_DIR = os.environ.get('XDG_CACHE_HOME', os.path.expanduser('~/.cache'))
|
||||
CLOUD_IMAGE = "ci.iso"
|
||||
@@ -1145,7 +1145,8 @@ class Fedora(Image):
|
||||
'39': '1.5',
|
||||
'40': '1.14',
|
||||
'41': '1.4',
|
||||
'42': '1.1'}
|
||||
'42': '1.1',
|
||||
'43': '1.6'}
|
||||
|
||||
def __init__(self, vbox, version, arch, fname=None):
|
||||
super().__init__(vbox, version, arch)
|
||||
@@ -1252,12 +1253,12 @@ DISTROS = {'ubuntu': {'username': 'ubuntu',
|
||||
'realname': 'centos',
|
||||
'img_class': CentosStream,
|
||||
'amd64': 'x86_64',
|
||||
'default_version': '9'},
|
||||
'default_version': '10'},
|
||||
'debian': {'username': 'debian',
|
||||
'realname': 'debian',
|
||||
'img_class': Debian,
|
||||
'amd64': 'amd64',
|
||||
'default_version': '12'}}
|
||||
'default_version': '13'}}
|
||||
|
||||
|
||||
def get_image_object(vbox, version, image='ubuntu', arch='amd64'):
|
||||
@@ -1826,4 +1827,7 @@ def main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
try:
|
||||
sys.exit(main())
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(50)
|
||||
|
||||
Reference in New Issue
Block a user