From cfa5b237c0fd347e8b2c80fe101c15059837ed97 Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Thu, 22 Mar 2018 00:16:09 -0500 Subject: [PATCH] install sudo in the devuser element The devuser element can set up passwordless sudo, which requiers the /etc/sudoers.d directory, which requires the sudo package, so we ensure the sudo package is installed. Change-Id: I80d6c669d4ac0d97b49d01cb621bf05b8e7f8ef1 --- diskimage_builder/elements/devuser/element-deps | 1 + diskimage_builder/elements/devuser/package-installs.yaml | 1 + diskimage_builder/elements/devuser/pkg-map | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 diskimage_builder/elements/devuser/element-deps create mode 100644 diskimage_builder/elements/devuser/package-installs.yaml create mode 100644 diskimage_builder/elements/devuser/pkg-map diff --git a/diskimage_builder/elements/devuser/element-deps b/diskimage_builder/elements/devuser/element-deps new file mode 100644 index 00000000..7076aba9 --- /dev/null +++ b/diskimage_builder/elements/devuser/element-deps @@ -0,0 +1 @@ +package-installs diff --git a/diskimage_builder/elements/devuser/package-installs.yaml b/diskimage_builder/elements/devuser/package-installs.yaml new file mode 100644 index 00000000..b00b3416 --- /dev/null +++ b/diskimage_builder/elements/devuser/package-installs.yaml @@ -0,0 +1 @@ +sudo: diff --git a/diskimage_builder/elements/devuser/pkg-map b/diskimage_builder/elements/devuser/pkg-map new file mode 100644 index 00000000..34a1ca9c --- /dev/null +++ b/diskimage_builder/elements/devuser/pkg-map @@ -0,0 +1,7 @@ +{ + "family": { + "gentoo": { + "sudo": "app-admin/sudo" + } + } +}