From 80a1f8e57646666d03309206e1b53aa0c21e9443 Mon Sep 17 00:00:00 2001 From: Andreas Scheuring Date: Fri, 28 Apr 2017 14:48:25 +0200 Subject: [PATCH] rhel7 image docs: Add installation of growpart In order to grow the file system of a partition using cloud-init the package 'cloud-utils-growpart' is required. As rhel7 uses a pretty old version of util-linux (which inclues 'sfdsik'), resizing the partition fails with awk: cmd. line:1: (FILENAME=- FNR=1) fatal: attempt to access field -1 FAILED: failed to get total number of sectors from /dev/sdb Change-Id: Ifc43722730f5616451dc002edd35e8fe8ff50a64 --- doc/source/image/rhel7/rhel7_image.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/source/image/rhel7/rhel7_image.rst b/doc/source/image/rhel7/rhel7_image.rst index dd50f18..d1dd187 100755 --- a/doc/source/image/rhel7/rhel7_image.rst +++ b/doc/source/image/rhel7/rhel7_image.rst @@ -71,6 +71,21 @@ Update boot loader Installation of Cloud-init -------------------------- +Install cloud-utils-growpart +++++++++++++++++++++++++++++ + +This package is required for growing the filesystem. + +* Download a version of cloud-utils-growpart < 0.27.13 + + .. note:: + Greater version can not deal with rhel7s old 'util-linux' package version + +* install it:: + + rpm -i cloud-utils-growpart-0.27-9.fc20.noarch.rpm + + Add the RHEL7.3 yum repository +++++++++++++++++++++++++++++++