diff --git a/elements/dpkg/element-deps b/elements/dpkg/element-deps index 0b710e7a..a3850950 100644 --- a/elements/dpkg/element-deps +++ b/elements/dpkg/element-deps @@ -1,2 +1,3 @@ +install-bin manifests package-installs diff --git a/elements/gentoo/element-deps b/elements/gentoo/element-deps index 25604c8e..15aa0f9c 100644 --- a/elements/gentoo/element-deps +++ b/elements/gentoo/element-deps @@ -1,3 +1,4 @@ cache-url dib-run-parts +install-bin package-installs diff --git a/elements/gentoo/pre-install.d/01-gentoo-install b/elements/gentoo/pre-install.d/02-gentoo-migrate-pax similarity index 73% rename from elements/gentoo/pre-install.d/01-gentoo-install rename to elements/gentoo/pre-install.d/02-gentoo-migrate-pax index f632aaab..9d79a7f4 100755 --- a/elements/gentoo/pre-install.d/01-gentoo-install +++ b/elements/gentoo/pre-install.d/02-gentoo-migrate-pax @@ -6,8 +6,6 @@ fi set -eu set -o pipefail -install -m 0755 -o root -g root $(dirname $0)/../bin/* /usr/local/bin - # migrate pt_pax flags to xt_pax if [[ -a /usr/sbin/migrate-pax ]]; then /usr/sbin/migrate-pax -m diff --git a/elements/install-bin/README.rst b/elements/install-bin/README.rst new file mode 100644 index 00000000..84e1278d --- /dev/null +++ b/elements/install-bin/README.rst @@ -0,0 +1,6 @@ +=========== +install-bin +=========== + +Add any files in an element's bin directory to /usr/local/bin in the created +image with permissions 0755. diff --git a/elements/dpkg/pre-install.d/01-dpkg-install-bin b/elements/install-bin/pre-install.d/01-install-bin similarity index 100% rename from elements/dpkg/pre-install.d/01-dpkg-install-bin rename to elements/install-bin/pre-install.d/01-install-bin diff --git a/elements/opensuse/element-deps b/elements/opensuse/element-deps index 14ee0a47..c0fd568d 100644 --- a/elements/opensuse/element-deps +++ b/elements/opensuse/element-deps @@ -1,4 +1,5 @@ cache-url dib-run-parts +install-bin package-installs zypper diff --git a/elements/opensuse/pre-install.d/01-opensuse-install-bin b/elements/opensuse/pre-install.d/01-opensuse-install-bin deleted file mode 100755 index 59b38a01..00000000 --- a/elements/opensuse/pre-install.d/01-opensuse-install-bin +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then - set -x -fi -set -eu -set -o pipefail - -install -m 0755 -o root -g root $(dirname $0)/../bin/* /usr/local/bin diff --git a/elements/package-installs/element-deps b/elements/package-installs/element-deps index 8ad55b95..fd63cb98 100644 --- a/elements/package-installs/element-deps +++ b/elements/package-installs/element-deps @@ -1,2 +1,3 @@ dib-python +install-bin pkg-map diff --git a/elements/yum/element-deps b/elements/yum/element-deps new file mode 100644 index 00000000..d888ae5c --- /dev/null +++ b/elements/yum/element-deps @@ -0,0 +1 @@ +install-bin diff --git a/elements/yum/pre-install.d/01-yum-install-bin b/elements/yum/pre-install.d/01-yum-install-bin deleted file mode 100755 index 59b38a01..00000000 --- a/elements/yum/pre-install.d/01-yum-install-bin +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then - set -x -fi -set -eu -set -o pipefail - -install -m 0755 -o root -g root $(dirname $0)/../bin/* /usr/local/bin