mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
guix-install.sh: Install SELinux policy and relabel file systems if needed.
Fixes <https://issues.guix.gnu.org/62487>. * etc/guix-install.sh (sys_maybe_setup_selinux): New function. (main): Use it.
This commit is contained in:
parent
3bf612eaa1
commit
4166b583fb
1 changed files with 14 additions and 0 deletions
|
@ -606,6 +606,19 @@ fi
|
||||||
_msg "${PAS}Bash shell prompt successfully customized for Guix"
|
_msg "${PAS}Bash shell prompt successfully customized for Guix"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sys_maybe_setup_selinux()
|
||||||
|
{
|
||||||
|
if [ -f /sys/fs/selinux/policy ]
|
||||||
|
then
|
||||||
|
prompt_yes_no "Install SELinux policy required to run guix-daemon?" \
|
||||||
|
|| return
|
||||||
|
|
||||||
|
local var_guix=/var/guix/profiles/per-user/root/current-guix
|
||||||
|
semodule -i "${var_guix}/share/selinux/guix-daemon.cil"
|
||||||
|
restorecon -R /gnu /var/guix
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
welcome()
|
welcome()
|
||||||
{
|
{
|
||||||
local char
|
local char
|
||||||
|
@ -681,6 +694,7 @@ main()
|
||||||
|
|
||||||
sys_create_store "${GUIX_BINARY_FILE_NAME}" "${tmp_path}"
|
sys_create_store "${GUIX_BINARY_FILE_NAME}" "${tmp_path}"
|
||||||
sys_create_build_user
|
sys_create_build_user
|
||||||
|
sys_maybe_setup_selinux
|
||||||
sys_enable_guix_daemon
|
sys_enable_guix_daemon
|
||||||
sys_authorize_build_farms
|
sys_authorize_build_farms
|
||||||
sys_create_init_profile
|
sys_create_init_profile
|
||||||
|
|
Loading…
Reference in a new issue