Add install-bin element
The various distro elements include a copy of this script which installs all files in the bin/ dir of the copied element hooks in to /usr/local/bin. Lets share code rather than repeating ourselves. Change-Id: I354382f8c42ede2e9b8c548b7df8367c03e6836e
This commit is contained in:
parent
11128b0673
commit
642f906476
10 changed files with 11 additions and 20 deletions
|
@ -1,2 +1,3 @@
|
||||||
|
install-bin
|
||||||
manifests
|
manifests
|
||||||
package-installs
|
package-installs
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
cache-url
|
cache-url
|
||||||
dib-run-parts
|
dib-run-parts
|
||||||
|
install-bin
|
||||||
package-installs
|
package-installs
|
||||||
|
|
|
@ -6,8 +6,6 @@ fi
|
||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
install -m 0755 -o root -g root $(dirname $0)/../bin/* /usr/local/bin
|
|
||||||
|
|
||||||
# migrate pt_pax flags to xt_pax
|
# migrate pt_pax flags to xt_pax
|
||||||
if [[ -a /usr/sbin/migrate-pax ]]; then
|
if [[ -a /usr/sbin/migrate-pax ]]; then
|
||||||
/usr/sbin/migrate-pax -m
|
/usr/sbin/migrate-pax -m
|
6
elements/install-bin/README.rst
Normal file
6
elements/install-bin/README.rst
Normal file
|
@ -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.
|
|
@ -1,4 +1,5 @@
|
||||||
cache-url
|
cache-url
|
||||||
dib-run-parts
|
dib-run-parts
|
||||||
|
install-bin
|
||||||
package-installs
|
package-installs
|
||||||
zypper
|
zypper
|
||||||
|
|
|
@ -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
|
|
|
@ -1,2 +1,3 @@
|
||||||
dib-python
|
dib-python
|
||||||
|
install-bin
|
||||||
pkg-map
|
pkg-map
|
||||||
|
|
1
elements/yum/element-deps
Normal file
1
elements/yum/element-deps
Normal file
|
@ -0,0 +1 @@
|
||||||
|
install-bin
|
|
@ -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
|
|
Loading…
Reference in a new issue