Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions tests/rspec/lib/container_linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

require 'ssh'

SSH_CMD_CONTAINER_LINUX_VERSION = 'sudo cat /var/lib/update_engine/prefs/aleph-version'
SSH_CMD_CONTAINER_LINUX_CHANNEL = 'for conf in /usr/share/coreos/update.conf /etc/coreos/update.conf ; \
do [ -f "$conf" ] && source "$conf" ; done ; echo "$GROUP"'
SSH_CMD_CONTAINER_LINUX_VERSION = 'if sudo [ -f /var/lib/update_engine/prefs/aleph-version ]; then \
sudo cat /var/lib/update_engine/prefs/aleph-version; \
else \
source /usr/share/coreos/release && echo "$COREOS_RELEASE_VERSION"; \
fi'
SSH_CMD_CONTAINER_LINUX_CHANNEL = 'for conf in /usr/share/coreos/update.conf /etc/coreos/update.conf; do \
[ -f "$conf" ] && source "$conf"; \
done; \
echo "$GROUP"'

# ContainerLinux provides helpers to find OS-level properties for a cluster.
module ContainerLinux
Expand Down