summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTomas Volf <~@wolfsden.cz>2024-05-09 12:14:19 +0200
committerLudovic Courtès <ludo@gnu.org>2024-06-02 12:05:09 +0200
commit887d031382c9648926208dcb619d0386c281ce24 (patch)
treee46f79e0f1173d17c0ad8a76546e03ffc8bd14ae /etc
parent1262e8b12213a380aa2bb802f8b43ac53337b431 (diff)
guix-install.sh: Relax check for OpenRC.
On my virtual private servers running Alpine, the install script failed to identify the init system. The virtual server is LXC based, and OpenRC identifies itself like this: # openrc --version openrc (OpenRC [LXC]) 0.52.1 The regular expression failed to match it. After relaxing the check (by removing the trailing `)' requirement) the installation went fine and I got functional Guix installation. * etc/guix-install.sh (chk_init_sys): Drop trailing \) from the regular expression. Change-Id: I5f951226341e631fb34cc6c26cfbb87656dab77a Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'etc')
-rwxr-xr-xetc/guix-install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 4e268a52d6..d61e36ef9b 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -217,7 +217,7 @@ chk_init_sys()
_msg "${INF}init system is: sysv-init"
INIT_SYS="sysv-init"
return 0
- elif [[ $(openrc --version 2>/dev/null) =~ \(OpenRC\) ]]; then
+ elif [[ $(openrc --version 2>/dev/null) =~ \(OpenRC ]]; then
_msg "${INF}init system is: OpenRC"
INIT_SYS="openrc"
return 0