From: Giovanni Biscuolo <g@xelera.eu>
To: Arun Isaac <arunisaac@systemreboot.net>
Cc: 34211@debbugs.gnu.org, help-guix@gnu.org
Subject: Re: bug#34211: error running container: mingetty cannot find ttys
Date: Fri, 15 Feb 2019 09:57:44 +0100 [thread overview]
Message-ID: <87zhqxbf93.fsf@roquette.mug.biscuolo.net> (raw)
In-Reply-To: <cu7va1mcevg.fsf@systemreboot.net>
[-- Attachment #1.1: Type: text/plain, Size: 549 bytes --]
Hi Arun,
Arun Isaac <arunisaac@systemreboot.net> writes:
>> please any hint on how to "manually" remove those two failing services?
>
> You should do something along the lines of the following:
>
> (remove (lambda (service)
> (let ((type (service-type-name (service-kind service))))
> (or (eq? type 'mingetty)
> (eq? type 'console-fonts))))
> %base-services)
[...]
thank you for your suggestion but this does not work
in everyone is willing to reproduce this bug [1] this is the container
config:
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
[-- Attachment #2: container-minimal.scm --]
[-- Type: application/octet-stream, Size: 1283 bytes --]
(use-modules (gnu))
(use-modules (rnrs lists))
(operating-system
(host-name "test-container")
(timezone "Europe/Rome")
(locale "en_US.utf8")
;; Boot in "legacy" BIOS mode
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")))
(file-systems (cons (file-system
(device (file-system-label "guixsd"))
(mount-point "/")
(type "ext4"))
%base-file-systems))
;; This is where user accounts are specified. The "root"
;; account is implicit, and is initially created with the
;; empty password.
(users (cons (user-account
(name "test")
(comment "Test User")
(group "users")
(supplementary-groups '("wheel" "audio" "video"))
(home-directory "/home/test"))
%base-user-accounts))
;; Globally-installed packages.
(packages (cons* %base-packages))
;; remove mingetty and console-fonts from container
(services (cons* (remove (lambda (service)
(let ((type (service-type-name (service-kind service))))
(or (eq? type 'mingetty)
(eq? type 'console-fonts))))
%base-services))))
[-- Attachment #3: Type: text/plain, Size: 601 bytes --]
it's _very_ lightweight so it'll not waste your store space, to test it
just do
--8<---------------cut here---------------start------------->8---
$ rm container-minimal
$ guix system container container-minimal.scm -r container-minimal
$ sudo ./container-minimal
--8<---------------cut here---------------end--------------->8---
in all my tests mingetty gets started and respawned, I can enter the
container and manually stop term-tty[1..6] services
Thanks!
Giovanni
[1] may it depend on my user environment? I'm on a foreign distro
(Debian 9.7)
--
Giovanni Biscuolo
Xelera IT Infrastructures
next prev parent reply other threads:[~2019-02-15 8:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-25 17:46 error running container: mingetty cannot find ttys Giovanni Biscuolo
2019-01-26 19:21 ` Efraim Flashner
2019-01-27 14:49 ` Giovanni Biscuolo
2019-01-27 16:15 ` Efraim Flashner
2019-02-06 12:16 ` Giovanni Biscuolo
2019-02-11 22:20 ` bug#34211: " Ludovic Courtès
2019-02-11 22:20 ` Ludovic Courtès
2019-02-12 10:25 ` Giovanni Biscuolo
2019-02-13 17:19 ` Giovanni Biscuolo
2019-02-13 17:19 ` Giovanni Biscuolo
2019-02-14 20:08 ` Arun Isaac
2019-02-15 8:57 ` Giovanni Biscuolo
2019-02-15 8:57 ` Giovanni Biscuolo [this message]
2019-02-15 10:39 ` Arun Isaac
2019-02-15 11:34 ` Giovanni Biscuolo
2019-02-15 11:34 ` Giovanni Biscuolo
2019-02-15 12:00 ` Arun Isaac
2019-02-15 12:00 ` Arun Isaac
2019-03-13 22:13 ` Ludovic Courtès
2019-02-15 10:39 ` Arun Isaac
2019-02-06 12:16 ` Giovanni Biscuolo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zhqxbf93.fsf@roquette.mug.biscuolo.net \
--to=g@xelera.eu \
--cc=34211@debbugs.gnu.org \
--cc=arunisaac@systemreboot.net \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.