This website requires JavaScript.
Explore
Help
Sign In
root
/
buildah
mirror of
https://github.com/containers/buildah.git
Watch
1
Star
0
Fork
You've already forked buildah
0
Code
Issues
Actions
3
Packages
Projects
Releases
Wiki
Activity
81584443fa
buildah
/
selinux_tag.sh
5 lines
82 B
Bash
Raw
Normal View
History
Unescape
Escape
Update shebangs to take env into consideration Some operating systems don’t have `bash` in `/bin`, so we should take the `$PATH` into consideration for searching it. Signed-off-by: Sascha Grunert <sgrunert@suse.com> Closes: #1804 Approved by: TomSweeneyRedHat
2019-08-20 16:13:20 +08:00
#!/usr/bin/env bash
Auto-set build tags for ostree and selinux Try to use pkg-config to check for 'ostree-1' and 'libselinux'. If ostree-1 is not found, use the containers_image_ostree_stub build tag to not require it, at the cost of not being able to use or write images to the 'ostree' transport. If libselinux is found, build with the 'selinux' tag, Signed-off-by: Nalin Dahyabhai <nalin@redhat.com> Closes: #252 Approved by: rhatdan
2017-08-28 22:39:18 +08:00
if
pkg-config libselinux 2> /dev/null
;
then
echo
selinux
fi