Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Fedora images in LXD backend #48

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

RAOF
Copy link

@RAOF RAOF commented Jan 4, 2018

Fixes #42, Fixes #44


if s.Distro() == Fedora {
// Fedora LXD images do *not* contain tar by default, so we must install it manually
args = []string{"exec", s.d.Name, "--", "dnf", "install", "--assumeyes", "tar"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, this could be done by adding tar to the fedora image setup script instead.

@@ -156,6 +221,17 @@ func isDebArch(s string) bool {
return false
}

func sshInstallCommand(distro Distro) []string {
if distro == Ubuntu || distro == Debian {
return []string{"apt", "install", "openssh-server"}
Copy link
Contributor

@Saviq Saviq Mar 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be fixing Ubuntu and Debian, not Fedora, as the PR title suggests, but having spoken to people behind linux-containers.org, ssh servers are not, and won't be, installed in those images on purpose, for security reasons (default ssh server settings are often too open).

@niemeyer

@RAOF RAOF changed the title Fix Fedora images in LXD backend (Fixes #42, Fixes #44) Fix Fedora images in LXD backend Feb 22, 2019
@RAOF RAOF force-pushed the master branch 5 times, most recently from 5d25cfa to ea89126 Compare September 15, 2019 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants