Skip to content

Fix Fedora images in LXD backend#48

Open
RAOF wants to merge 9 commits intocanonical:masterfrom
RAOF:master
Open

Fix Fedora images in LXD backend#48
RAOF wants to merge 9 commits intocanonical:masterfrom
RAOF:master

Conversation

@RAOF
Copy link
Copy Markdown

@RAOF RAOF commented Jan 4, 2018

Fixes #42, Fixes #44

Comment thread spread/lxd.go

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
Copy Markdown
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.

Comment thread spread/lxd.go

func sshInstallCommand(distro Distro) []string {
if distro == Ubuntu || distro == Debian {
return []string{"apt", "install", "openssh-server"}
Copy link
Copy Markdown
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.

2 participants