This website requires JavaScript.
Explore
Help
Register
Sign In
sig_cloud
/
diskimage-builder
Watch
2
Star
0
Fork
0
You've already forked diskimage-builder
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
6fedbc58f9
diskimage-builder
/
elements
/
package-installs
/
install.d
/
00-package-installs
7 lines
73 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Support declarative package installs/uninstalls Adds a new element, package-installs, that provides an interface for declarative package installs and uninstalls. Packages to install can be added to an install.d/package-installs-<element-name> file. The set of packages listed across such files are installed in a single transaction at the beginning of install.d. Prefacing the package name with a "-" indicates that the package should be uninstalled at the end of the install.d phase. Again, the full set of uninstalls are done in a single transaction. An element providing a package-installs file should add package-installs to its element-deps file. Change-Id: I5b540388eff1079c8dee933b869463371481152b
2014-04-24 20:51:24 +00:00
#!/bin/bash
set -eux
set -o pipefail
package-installs for pre-install.d/post-install.d Packages are often also installed in both the pre-install.d and post-install.d phases. This patch expands the package-installs element to support declarative package support for these phases in addition to the existing support for install.d. The actual install/uninstall logic is moved to common scripts under bin/ so that it can be reused across the different phases. Change-Id: Id51d0bbad232737fc8b5ffaf016dec50cd5b66c9
2014-07-21 17:03:31 +00:00
package-installs -d $(dirname $0)
Reference in New Issue
Copy Permalink