From 244f0a000118b6a2b94dd579375a411bd578f8eb Mon Sep 17 00:00:00 2001
From: Ian Wienand <iwienand@redhat.com>
Date: Fri, 20 May 2016 14:32:41 +1000
Subject: [PATCH] Add cloud-initramfs-growroot for Precise

Add a pkg-map to install cloud-initramfs-growroot on Precise, as it is
required there because the kernel is too old to use growroot on a live
file-system.  This was generically removed in
e23b087505b85ae1da11054aa980a956f2ec7195.

Change-Id: I5e6cbc4b74dc72a6f23f73a018c028f3ff7c0157
---
 elements/debootstrap/element-deps          |  1 +
 elements/debootstrap/package-installs.yaml |  1 +
 elements/debootstrap/pkg-map               | 12 ++++++++++++
 3 files changed, 14 insertions(+)
 create mode 100644 elements/debootstrap/pkg-map

diff --git a/elements/debootstrap/element-deps b/elements/debootstrap/element-deps
index 6f4b1e0db..594d0d353 100644
--- a/elements/debootstrap/element-deps
+++ b/elements/debootstrap/element-deps
@@ -1,2 +1,3 @@
 dib-run-parts
 dpkg
+pkg-map
diff --git a/elements/debootstrap/package-installs.yaml b/elements/debootstrap/package-installs.yaml
index 5847c7fd9..f56709c80 100644
--- a/elements/debootstrap/package-installs.yaml
+++ b/elements/debootstrap/package-installs.yaml
@@ -1,5 +1,6 @@
 adduser:
 ca-certificates:
+cloud-initramfs-growroot:
 locales:
 lsb-release:
   phase: pre-install.d
diff --git a/elements/debootstrap/pkg-map b/elements/debootstrap/pkg-map
new file mode 100644
index 000000000..cc0abde32
--- /dev/null
+++ b/elements/debootstrap/pkg-map
@@ -0,0 +1,12 @@
+{
+  "release": {
+    "ubuntu": {
+      "precise": {
+        "cloud-initramfs-growroot": "cloud-initramfs-growroot"
+       }
+     }
+   },
+  "default": {
+    "cloud-initramfs-growroot": ""
+  }
+}