diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-05-23 12:31:48 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2018-05-23 12:31:48 -0400 |
commit | a821cde1722b18ec54279a5fbfb5da96032ef95e (patch) | |
tree | ac220316e19f53e72e323c7c1e1a569a8031656f /tools/read-dependencies | |
parent | 5446c788160412189200c6cc688b14c9f9071943 (diff) | |
download | vyos-cloud-init-a821cde1722b18ec54279a5fbfb5da96032ef95e.tar.gz vyos-cloud-init-a821cde1722b18ec54279a5fbfb5da96032ef95e.zip |
tools/run-container: replace tools/run-centos with more generic.
tools/run-container is like tools/run-centos, but currently supports
the following images from lxc-images
opensuse/42.3
centos/6
centos/7
ubuntu/16.04
debian/10
debian/sid
Also here is to make installation via zypper in tools/read-dependencies
not prompt user.
Diffstat (limited to 'tools/read-dependencies')
-rwxr-xr-x | tools/read-dependencies | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/read-dependencies b/tools/read-dependencies index 421f470a..b4656e69 100755 --- a/tools/read-dependencies +++ b/tools/read-dependencies @@ -51,6 +51,10 @@ MAYBE_RELIABLE_YUM_INSTALL = [ """, 'reliable-yum-install'] +ZYPPER_INSTALL = [ + 'zypper', '--non-interactive', '--gpg-auto-import-keys', 'install', + '--auto-agree-with-licenses'] + DRY_DISTRO_INSTALL_PKG_CMD = { 'centos': ['yum', 'install', '--assumeyes'], 'redhat': ['yum', 'install', '--assumeyes'], @@ -61,8 +65,8 @@ DISTRO_INSTALL_PKG_CMD = { 'redhat': MAYBE_RELIABLE_YUM_INSTALL, 'debian': ['apt', 'install', '-y'], 'ubuntu': ['apt', 'install', '-y'], - 'opensuse': ['zypper', 'install'], - 'suse': ['zypper', 'install'] + 'opensuse': ZYPPER_INSTALL, + 'suse': ZYPPER_INSTALL, } |