forked from containers/bootc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hack: Add support for installing cloud-init+rsync
These are things that https://tmt.readthedocs.io/en/stable/ wants, and the goal is to support running under tmt more directly. Part of containers#543 Signed-off-by: Colin Walters <[email protected]>
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -xeu | ||
case "$1" in | ||
tmt) | ||
# tmt wants rsync | ||
dnf -y install cloud-init rsync && dnf clean all | ||
ln -s ../cloud-init.target /usr/lib/systemd/system/default.target.wants | ||
# And tmt wants to write to /usr/local/bin | ||
rm /usr/local -rf && ln -sr /var/usrlocal /usr/local && mkdir -p /var/usrlocal/bin | ||
;; | ||
"") echo "No variant" | ||
;; | ||
*) | ||
echo "Unknown variant: $1" exit 1 | ||
;; | ||
esac |