From 92de91476e4d754485bfc64eb960aaf032376cb6 Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Thu, 28 Jan 2016 15:45:14 -0600 Subject: [PATCH] Add Gentoo support to growroot Add missing growroot initscript and pkg-map entries for Gentoo. growpart was added to Gentoo with [1] Update the readme to reflect reality too (fedora added with I5630dc638f85b1e80795826ef36a306632075460) [1] https://packages.gentoo.org/packages/sys-fs/growpart Closes-Bug: #1539273 Change-Id: I29056c7297489ec04f37757dbe33976901eceb49 --- elements/growroot/README.rst | 6 +++++- elements/growroot/init-scripts/openrc/growroot | 10 ++++++++++ elements/growroot/pkg-map | 4 ++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 elements/growroot/init-scripts/openrc/growroot diff --git a/elements/growroot/README.rst b/elements/growroot/README.rst index c05150e6..33a5d27e 100644 --- a/elements/growroot/README.rst +++ b/elements/growroot/README.rst @@ -4,4 +4,8 @@ growroot Grow the root partition on first boot. -This only supported on ubuntu trusty or later. +This is only supported on: + +* ubuntu trusty or later +* gentoo +* fedora & centos diff --git a/elements/growroot/init-scripts/openrc/growroot b/elements/growroot/init-scripts/openrc/growroot new file mode 100755 index 00000000..4656fbcf --- /dev/null +++ b/elements/growroot/init-scripts/openrc/growroot @@ -0,0 +1,10 @@ +#!/sbin/runscript + +start() { + /usr/local/sbin/growroot + eend 0 +} + +depend() { + need localmount +} diff --git a/elements/growroot/pkg-map b/elements/growroot/pkg-map index 1fa644d7..43d4ec7c 100644 --- a/elements/growroot/pkg-map +++ b/elements/growroot/pkg-map @@ -7,6 +7,10 @@ "debian":{ "growpart": "cloud-utils", "e2fsprogs": "e2fsprogs" + }, + "gentoo": { + "growpart": "sys-fs/growpart", + "e2fsprogs": "sys-fs/e2fsprogs" } } }