From 3ba71becd2286cf1272e1328160d000304ddf692 Mon Sep 17 00:00:00 2001 From: Vitaly Gridnev Date: Tue, 13 Dec 2016 21:43:48 +0300 Subject: [PATCH] fix firstboot script implement required changes to adopt firstboot script for CentOS 7.x. Since lsb_release command is not available on CentOS 7.x, we will include redhat-lsb-core package to image. Change-Id: I2e5f2d598fbb9b3af0fcfd6e69a09e1ebce8e52d --- elements/hadoop/install.d/firstboot | 3 +++ elements/hadoop/package-installs.yaml | 1 + elements/hadoop/pkg-map | 10 ++++++++++ 3 files changed, 14 insertions(+) create mode 100644 elements/hadoop/pkg-map diff --git a/elements/hadoop/install.d/firstboot b/elements/hadoop/install.d/firstboot index da112830..5eec4911 100644 --- a/elements/hadoop/install.d/firstboot +++ b/elements/hadoop/install.d/firstboot @@ -38,6 +38,9 @@ function firstboot_common { 6.*) chown -R cloud-user:cloud-user /home/cloud-user ;; + 7.*) + chown -R centos:centos /home/centos + ;; esac ;; * ) diff --git a/elements/hadoop/package-installs.yaml b/elements/hadoop/package-installs.yaml index 7aed1b95..d3fe5759 100644 --- a/elements/hadoop/package-installs.yaml +++ b/elements/hadoop/package-installs.yaml @@ -1,2 +1,3 @@ wget: tar: +redhat-lsb-core: diff --git a/elements/hadoop/pkg-map b/elements/hadoop/pkg-map new file mode 100644 index 00000000..f3aee19b --- /dev/null +++ b/elements/hadoop/pkg-map @@ -0,0 +1,10 @@ +{ + "family": { + "debian": { + "redhat-lsb-core": "" + }, + "redhat": { + "redhat-lsb-core": "redhat-lsb-core" + } + } +}