diff --git a/elements/growroot/README.rst b/elements/growroot/README.rst index c05150e6c..33a5d27e5 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 000000000..4656fbcf7 --- /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 1fa644d7f..43d4ec7cf 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" } } }