mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-10-14 00:52:16 +00:00
fix: processes in docker images and pass full environment to
subprocesses Since 1.0.4 release devtools require systemd to be run in order to create slice for unit
This commit is contained in:
1 parent
462096ee8a
commit
d5f4fc9b86
6 files changed
+27
-4
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Since https://gitlab.archlinux.org/archlinux/devtools/-/commit/5f4fd52e3836ddddb25a0f9e15d0acfed06f693d
|
||||
# it is impossible to start devtools inside docker container, because it requires slice registering
|
||||
# which is impossible because there is no init in container
|
||||
|
||||
is_slice() {
|
||||
[[ $1 =~ ^--slice* ]]
|
||||
}
|
||||
|
||||
allowed=()
|
||||
for arg in "$@"; do
|
||||
is_slice "$arg" && allowed+=("--keep-unit") || allowed+=("$arg")
|
||||
done
|
||||
|
||||
exec /usr/bin/systemd-nspawn "${allowed[@]}"
|
||||
Reference in new issue
Block a user