Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Fix installer userdata #2420

Merged
merged 4 commits into from
Feb 6, 2016
Merged

Fix installer userdata #2420

merged 4 commits into from
Feb 6, 2016

Conversation

titanous
Copy link
Contributor

@titanous titanous commented Feb 6, 2016

Fixes several bugs in the userdata script, currently preventing EC2 installs with the latest release.

/cc @josephglanville

This prevented the script from running under /bin/sh

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
If this is not done, the later `touch` in the same script will fail.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
This line is commented out by default in our VM images so that we have
control over the first boot.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
if [[ ! -f "${FIRST_BOOT}" ]]; then
mkdir -p /var/lib/flynn

if [ ! -f "${FIRST_BOOT}" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason we aren't using /bin/bash? That is the change I would have made rather than this, but I don't think it really matters.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think there is reason, no. That change could be made in a future patch, I don't think it really impacts anything.

@lmars
Copy link
Contributor

lmars commented Feb 6, 2016

LGTM

titanous added a commit that referenced this pull request Feb 6, 2016
@titanous titanous merged commit 22d79c9 into master Feb 6, 2016
@titanous titanous deleted the fix-installer-userdata branch February 6, 2016 17:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants