unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#70843] [PATCH] guix-install.sh: Relax check for OpenRC.
@ 2024-05-09 10:14 Tomas Volf
  2024-06-02  9:41 ` bug#70843: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Tomas Volf @ 2024-05-09 10:14 UTC (permalink / raw)
  To: 70843; +Cc: Tomas Volf

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
---
 etc/guix-install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 82accfd5d5..c5a04bb1f4 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
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#70843: [PATCH] guix-install.sh: Relax check for OpenRC.
  2024-05-09 10:14 [bug#70843] [PATCH] guix-install.sh: Relax check for OpenRC Tomas Volf
@ 2024-06-02  9:41 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-06-02  9:41 UTC (permalink / raw)
  To: Tomas Volf; +Cc: 70843-done

Tomas Volf <~@wolfsden.cz> skribis:

> 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

Applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-02  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-09 10:14 [bug#70843] [PATCH] guix-install.sh: Relax check for OpenRC Tomas Volf
2024-06-02  9:41 ` bug#70843: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).