Project

General

Profile

Bug #13298

Fails installation if /tmp is mounted noexec

Added by Guido Günther almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Host creation
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

This seems to be the case in at least SLES12 which makes script execution fail. Since we don't know the used interpreter we can't just prefix with "bash -c" so don't use /tmp but rather use the login users $HOME which should always be writeable.

I'm happy to make this configurable but I assume $HOME is a bitter default then /tmp. It also has the advantage that the logs aren't gone after a reboot.

Associated revisions

Revision d619dd9e (diff)
Added by Guido Günther almost 4 years ago

fixes #13298 - ssh_provision: Don't use /tmp

On some systems (e.g. SLES12) /tmp is mounted noexec by default so not
usable to run the provision script. The home directory of the
connectiong user should be writeable by itself though so just use this
instead.

History

#1 Updated by Guido Günther almost 4 years ago

Forgot to add some logs:

2016-01-20T10:41:40 [app] [D] about to execute  bash -c 'chmod 0701 /tmp/bootstrap-5019eaae-4923-5bfb-fc92-2e051c987e01 && /tmp/bootstrap-5019eaae-4923-5bfb-fc92-2e051c987e01' | tee /tmp/bootstrap-5019eaae-4923-5bfb-fc92-2e051c987e01.log
...
2016-01-20T10:41:40 [app] [D] bash: /tmp/bootstrap-5019eaae-4923-5bfb-fc92-2e051c987e01: Permission denied

#2 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing

#3 Updated by Guido Günther almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal almost 4 years ago

  • Assignee set to Guido Günther
  • Legacy Backlogs Release (now unused) set to 71

Also available in: Atom PDF