unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Giovanni Biscuolo <g@xelera.eu>
To: Arun Isaac <arunisaac@systemreboot.net>
Cc: help-guix@gnu.org, 34211@debbugs.gnu.org
Subject: bug#34211: error running container: mingetty cannot find ttys
Date: Fri, 15 Feb 2019 09:57:44 +0100	[thread overview]
Message-ID: <87zhqxbf93.fsf__41328.5101343476$1550221167$gmane$org@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

  reply	other threads:[~2019-02-15  8:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <874l9wbpfb.fsf@roquette.mug.biscuolo.net>
2019-01-26 19:21 ` error running container: mingetty cannot find ttys Efraim Flashner
2019-02-06 12:16   ` bug#34211: " Giovanni Biscuolo
     [not found]   ` <87sgx1glhv.fsf@roquette.mug.biscuolo.net>
2019-02-11 22:20     ` Ludovic Courtès
     [not found]     ` <87zhr2q862.fsf@gnu.org>
2019-02-12 10:25       ` Giovanni Biscuolo
2019-02-13 17:19         ` Giovanni Biscuolo
     [not found]         ` <874l97ehc7.fsf@roquette.mug.biscuolo.net>
2019-02-14 20:08           ` Arun Isaac
2019-02-15  8:57             ` Giovanni Biscuolo [this message]
     [not found]             ` <87zhqxbf93.fsf@roquette.mug.biscuolo.net>
2019-02-15 10:39               ` Arun Isaac
     [not found]               ` <cu7pnrtcp45.fsf@systemreboot.net>
2019-02-15 11:34                 ` Giovanni Biscuolo
     [not found]                 ` <87k1i1b803.fsf@roquette.mug.biscuolo.net>
2019-02-15 12:00                   ` Arun Isaac
     [not found]                   ` <cu7mumxcldi.fsf@systemreboot.net>
2019-03-13 22:13                     ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='87zhqxbf93.fsf__41328.5101343476$1550221167$gmane$org@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 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).