/
githubmirror
/
rpm-ostree
Обзор
Документация
Войти
/
githubmirror
/
rpm-ostree
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/libpriv/systemctl-wrapper.sh
12 строк
486 B
Colin Walters
systemctl-wrapper: Pass through usage of --root directly
12 окт 2022, 20:42
12 окт 2022, 20:42
9ba1c96
Код
Авторство
О чём код?
#!/usr/bin/bash # Used by rpmostree-core.c to intercept `systemctl` operations. We want to # handle `preset`, and ignore everything else such as `start`/`stop` etc. # However if --root is passed, we do want to support that. # See also https://github.com/projectatomic/rpm-ostree/issues/550 for arg in "$@"; do case $arg in preset | --root | --root=*) exec /usr/bin/systemctl.rpmostreesave "$@" ;; esac done echo "rpm-ostree-systemctl: Ignored non-preset command:" "$@"