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
This commit is contained in:
Vitaly Gridnev 2016-12-13 21:43:48 +03:00 committed by Vitaly Gridnev
parent 0d727b5d49
commit 3ba71becd2
3 changed files with 14 additions and 0 deletions

View File

@ -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
;;
* )

View File

@ -1,2 +1,3 @@
wget:
tar:
redhat-lsb-core:

10
elements/hadoop/pkg-map Normal file
View File

@ -0,0 +1,10 @@
{
"family": {
"debian": {
"redhat-lsb-core": ""
},
"redhat": {
"redhat-lsb-core": "redhat-lsb-core"
}
}
}