[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/17: linux-container: Pass '--disable-chroot' to 'guix-daemon'.
From: |
guix-commits |
Subject: |
02/17: linux-container: Pass '--disable-chroot' to 'guix-daemon'. |
Date: |
Sat, 24 Jun 2023 11:08:58 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit ed5a9f5260666679289c3d20d5068e374084a50c
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Jun 16 10:52:58 2023 +0200
linux-container: Pass '--disable-chroot' to 'guix-daemon'.
This allows for the use of Guix within a non-privileged Docker container
produced by 'guix system image -t docker'.
* gnu/system/linux-container.scm (containerized-operating-system):
Change 'guix-configuration' to add "--disable-chroot".
---
gnu/system/linux-container.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/system/linux-container.scm b/gnu/system/linux-container.scm
index 7c45dbccaf..485baea4c5 100644
--- a/gnu/system/linux-container.scm
+++ b/gnu/system/linux-container.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 David Thompson <davet@gnu.org>
-;;; Copyright © 2016-2017, 2019-2022 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2016-2017, 2019-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Google LLC
@@ -160,6 +160,17 @@ containerized OS. EXTRA-FILE-SYSTEMS is a list of file
systems to add to OS."
(nscd-configuration
(inherit (service-value s))
(caches %nscd-container-caches))))
+ ((eq? guix-service-type (service-kind s))
+ ;; Pass '--disable-chroot' so that
+ ;; guix-daemon can build thing even in
+ ;; Docker without '--privileged'.
+ (service guix-service-type
+ (guix-configuration
+ (inherit (service-value s))
+ (extra-options
+ (cons "--disable-chroot"
+
(guix-configuration-extra-options
+ (service-value s)))))))
(else s)))
(operating-system-user-services os))))
(file-systems (append (map mapping->fs
- branch master updated (d6dc82e8cd -> d3f5c35e40), guix-commits, 2023/06/24
- 03/17: doc: Turn "Creating a Channel" into a step-by-step guide., guix-commits, 2023/06/24
- 01/17: services: dicod: Use one inetd endpoint per interface., guix-commits, 2023/06/24
- 02/17: linux-container: Pass '--disable-chroot' to 'guix-daemon'.,
guix-commits <=
- 06/17: gnu: ruby-mini-portile-2: Update to 2.8.2., guix-commits, 2023/06/24
- 04/17: gnu: fenics: Make sure 'jit.py' can find 'dolfin.pc'., guix-commits, 2023/06/24
- 05/17: gnu: fenics-dolfin, fenics: Remove input labels., guix-commits, 2023/06/24
- 07/17: gnu: ruby-nokogiri: Update to 1.15.2., guix-commits, 2023/06/24
- 11/17: gnu: Add subunit., guix-commits, 2023/06/24
- 13/17: gnu: Add yder., guix-commits, 2023/06/24
- 09/17: gnu: Add libansilove., guix-commits, 2023/06/24
- 12/17: gnu: Add orcania., guix-commits, 2023/06/24
- 08/17: gnu: dyninst: Fix runtime error with new glibc., guix-commits, 2023/06/24
- 10/17: gnu: Add ansilove., guix-commits, 2023/06/24