error running container: mingetty cannot find ttys

  • Done
  • quality assurance status badge
Details
4 participants
  • Arun Isaac
  • Efraim Flashner
  • Giovanni Biscuolo
  • Ludovic Courtès
Owner
unassigned
Submitted by
Efraim Flashner
Severity
normal
E
E
Efraim Flashner wrote on 26 Jan 2019 20:21
(name . Giovanni Biscuolo)(address . g@xelera.eu)
20190126192150.GD11329@macbook41
Attachment: file
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlxMs0sACgkQQarn3Mo9
g1EB9w//f5SJhT8xIwAefYNxg0DoZjcoTSffFtLj9y7zIt+dq6L65W6icjvW/dOF
6dj+RBOG+LB0mB5gO4yWvjzDkcqaZnB2uOeV+WwsNmCvhcbdZf9xABvfDbqJZR4N
TJRA9nw0i3kb/G5sSvbEoRxqq4EU+Ho9SCfV7TiuoJ1M+s7qdXndCvSkSpprsbpc
oRYz92wsPSyYO389uCYKcheZU2Cf5KngK2WtqMO9+b4c7dPAtEJUxfFTA+hPuQho
OuoGbECyY9DJ1BG0iuEA9dv3b6Y0dWn5Bh0Z53LIcehwlfpY76b+dV1KvTL0U/d2
uHhuE5nWDxOxuiJ4AT8xUr6or3ngSBct+wLa0EXBQWkIaa3bKZUaq9+j1sNVzH7a
n3bEbeRsd+/i4WFqg0QhhSUtaAmW/pc+7e4Kj26R9f8lI35rs1cX9NG5aX/NLPSy
JZlUeoMC/8ADPwLvAuusa09AICafGNGUNKv869kxAEMx6IcLOZCs/Zs29w2toXoW
QWH90GJtRVj4mCE5Ad37Dd7DkvFMJoSxf5R8YHAuhNecz68b5rY8cBM+FtefnlAD
KvyD4KytDXgJS8NZMp9fFL1Rg0CbD9WKRf9dQ3u2qFHhNOxX2edR/hRz/Jsk86m/
OUJLapcKkZeHpAZcjAWNitoemlGeiNzVDPz1kGiV/pFeU/EatA8=
=9uQk
-----END PGP SIGNATURE-----


G
G
Giovanni Biscuolo wrote on 6 Feb 2019 13:16
(address . help-guix@gnu.org)
87sgx1glhv.fsf@roquette.mug.biscuolo.net
Hi!

plase is there someone else that could reproduce this issue with "guix

I'm still not able to run a container built using "guix system container
container-minimal.scm -r container-minimal"

I'm on guix commit: 4aeb7f34c948f32363f2ae29c6942c6328df758c

this is the simple container.scm I'm using:

Toggle snippet (50 lines)
;; This is an operating system configuration template
;; to test containers via guix system (also on foregin distros)
;; see https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-system.html

(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules screen ssh emacs)

(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 "gbiscuolo")
(comment "Giovanni Biscuolo (admin)")
(group "users")
(supplementary-groups '("wheel" "audio" "video"))
(home-directory "/home/gbiscuolo"))
%base-user-accounts))
;; Globally-installed packages.
(packages (cons* screen openssh emacs %base-packages))

;; Add services to the baseline: a DHCP client and
;; an SSH server.
(services (cons* (service dhcp-client-service-type)
(service openssh-service-type
(openssh-configuration
(x11-forwarding? #t)
(permit-root-login 'without-password)
(port-number 22)))
%base-services)))

and this are the messages I got on running the container:

Toggle snippet (53 lines)
registering public key '/gnu/store/4v6cxail1ajinjqsgfblan132fbw06m4-guix-0.16.0-9.4bddd12/share/guix/hydra.gnu.org.pub'...
registering public key '/gnu/store/4v6cxail1ajinjqsgfblan132fbw06m4-guix-0.16.0-9.4bddd12/share/guix/berlin.guixsd.org.pub'...
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
nscd: 166 monitoring file `/etc/hosts` (1)
nscd: 166 monitoring directory `/etc` (2)
nscd: 166 monitoring file `/etc/resolv.conf` (3)
nscd: 166 monitoring directory `/etc` (2)
nscd: 166 monitoring file `/etc/services` (4)
nscd: 166 monitoring directory `/etc` (2)
failed to start service 'console-font-tty1'
failed to start service 'console-font-tty2'
failed to start service 'console-font-tty3'
failed to start service 'console-font-tty4'
failed to start service 'console-font-tty5'
failed to start service 'console-font-tty6'
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[181]: tty3: No such file or directory
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[180]: tty4: No such file or directory
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[178]: tty6: No such file or directory
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[179]: tty5: No such file or directory
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[183]: tty1: No such file or directory
Feb 6 12:45:18 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[182]: tty2: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[190]: tty4: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[188]: tty6: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[189]: tty5: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[191]: tty3: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[193]: tty1: No such file or directory
Feb 6 12:45:24 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[192]: tty2: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[195]: tty6: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[194]: tty4: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[197]: tty5: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[198]: tty3: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[199]: tty1: No such file or directory
Feb 6 12:45:29 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[200]: tty2: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[201]: tty6: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[203]: tty5: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[202]: tty4: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[204]: tty3: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[205]: tty1: No such file or directory
Feb 6 12:45:34 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[206]: tty2: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[209]: tty4: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[208]: tty6: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[210]: tty5: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[211]: tty3: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[213]: tty2: No such file or directory
Feb 6 12:45:39 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[212]: tty1: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[214]: tty4: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[217]: tty5: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[216]: tty6: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[218]: tty3: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[219]: tty2: No such file or directory
Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[220]: tty1: No such file or directory

I have to TERM the the container since the "ttN: No such file or
directory" message loops indefinitely

Efraim Flashner was able to reproduce the issue: is my container
configuration broken

Efraim Flashner <efraim@flashner.co.il> writes:

[...]

Toggle quote (4 lines)
> I tested the config (after removing the references to your ssh key) on
> commit fc9c47bd7cdfd6265681e6b2c48fdb7889672bcc and I got the same
> issue. Forwarding on to bug-guix

please any hint on how to solve this issue?

Thanks!
Giovanni

--
Giovanni Biscuolo

Xelera IT Infrastructures
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlxa0CwACgkQ030Op87M
ORJq6xAAnwXd4JYbzWm3c4qOSe7vCbhDDtCe7V7MPQznFrWCjIhYIOhCpUibu3+G
TLMK0QaAADbug30/Q0DlYfgXoim5GZU9Rp4OFNSWfH0W5ZnX/PR0dEObpT0fO5Eo
BBgNR0JOTBHuaDk4+arDCH+XPuludqw1a/RxrM+vTLBKQfrIdxTKnqOf5QKzyi5O
/rtVDBaix0fy9gBqD6pXuB2EO/WRr9bJ5IrL4FvxkW1lYE3YOjk4+R+S+yt1VDlc
cGLpvvpScOBHg0LK3c8fHpzoaYwohB9lJkdpCp2u7ZBWLHCbi/93nGjn41L/pIyi
pvpVrh4jK1vp6yp6Xb5Rpqi5cMR6LfYvladGJlU/0bl58RZ6vwqfwuLdNBmxlNxu
51zQmJu2SZP/fS/JdYe2CzK0ZfhzAEq+4CSA1Q51GqXz1tvqzPP3LF8sbre3Yr+e
mhzDndKI0o11s61ekVXDuIXAwmsAJOHzRAwwwZLyJmGrwt9LEVTfCaBCxczosuRO
+p6MQV4u4z7rBfJ2tCpm9mvjPw6Caidelc3CwXalLQH5PQzGn2ZhQoQzXaTv7ZtZ
sH3Tka9v6kPB7iGg1xZAIJBnlXEwMZP7a2fopyZdVaKIjdENtTAgvnUF27zjU5Op
qqFzwX1IS4eLvZYgn1z5ZNNev6ee+THJRdMLnQLq3k5q0TKibyo=
=uMyZ
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 11 Feb 2019 23:20
Re: bug#34211: error running container: mingetty cannot find ttys
(name . Giovanni Biscuolo)(address . g@xelera.eu)
87zhr2q862.fsf@gnu.org
Hi Giovanni,

Giovanni Biscuolo <g@xelera.eu> skribis:

Toggle quote (3 lines)
> plase is there someone else that could reproduce this issue with "guix
> system container": https://issues.guix.info/issue/34211 ?

[...]

Toggle quote (9 lines)
> Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[217]: tty5: No such file or directory
> Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[216]: tty6: No such file or directory
> Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[218]: tty3: No such file or directory
> Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[219]: tty2: No such file or directory
> Feb 6 12:45:44 localhost /gnu/store/mbq93mr1vbs6za0n0yn32gfsyq1wx6xf-mingetty-1.08/sbin/mingetty[220]: tty1: No such file or directory
>
> I have to TERM the the container since the "ttN: No such file or
> directory" message loops indefinitely

I also get this behavior.

What happens is that the /dev/ttyN nodes do not exist (understandably),
and thus the ‘console-font-ttyN’ Shepherd services fail to start, and
get restarted, indefinitely.

The container is working as expected though. If you find the PID of the
container’s ‘shepherd’ process (its PID 1, which obviously has a
different PID outside the container), then you can do:

guix container exec NNN /bin/sh

where NNN is that PID of that ‘shepherd’ process (I use ‘pstree’ to find
the PID… not very convenient.)

In that shell, you can do:

Toggle snippet (38 lines)
sh-4.4# . /etc/profile
sh-4.4# ls
bin dev etc gnu home proc root run sys tmp var
sh-4.4# herd status
Started:
+ containerized-shepherd
+ file-systems
+ guix-daemon
+ host-name
+ loopback
+ nscd
+ root
+ root-file-system
+ ssh-daemon
+ syslogd
+ term-tty1
+ term-tty2
+ term-tty3
+ term-tty4
+ term-tty5
+ term-tty6
+ udev
+ urandom-seed
+ user-file-systems
+ user-processes
+ virtual-terminal
Stopped:
- console-font-tty1
- console-font-tty2
- console-font-tty3
- console-font-tty4
- console-font-tty5
- console-font-tty6
- networking
- term-auto
- user-homes

So in that sense everything is working “as expected.”

Now, it would make more sense to simply remove those ‘console-font-ttyN’
services in a container and everything that depends on them. Not sure
if we should do that automatically.

Thoughts?

Thanks,
Ludo’.
G
G
Giovanni Biscuolo wrote on 12 Feb 2019 11:25
(name . Ludovic Courtès)(address . ludo@gnu.org)
8736otfgmo.fsf@roquette.mug.biscuolo.net
Hi Ludo'

thank you for looking into this issue!

Ludovic Courtès <ludo@gnu.org> writes:

[...]

Toggle quote (2 lines)
> I also get this behavior.

OK, so this is deterministic now :-)

Toggle quote (4 lines)
> What happens is that the /dev/ttyN nodes do not exist (understandably),
> and thus the ‘console-font-ttyN’ Shepherd services fail to start, and
> get restarted, indefinitely.

actually they do fail but they are not respawned, the services that get
respawned are term-tty[1..6]

Toggle quote (6 lines)
> The container is working as expected though. If you find the PID of the
> container’s ‘shepherd’ process (its PID 1, which obviously has a
> different PID outside the container), then you can do:
>
> guix container exec NNN /bin/sh

I have to use "sudo" to be able to start and "guix container exec" a
shell in it (I mean: sudo guix container exec...)

I used that command in another terminal so I could see the console
messages from the container

Toggle quote (3 lines)
> where NNN is that PID of that ‘shepherd’ process (I use ‘pstree’ to find
> the PID… not very convenient.)

oh yes! I did not realized that my container was there waiting for me
:-)
...I also did not realized thet the container is started as a foreground
process, so we nees to background

I used pstree too, we need a better way to interact with a container (by
name and not by PID); sorry but I still cannot help here, my Guile
proficency is still too low; anyway this is tangent to this bug

Toggle quote (2 lines)
> In that shell, you can do:

[...]

Toggle quote (2 lines)
> So in that sense everything is working “as expected.”

yes, I see: I stopped term-tty[1..6] and the failure messages disappeared

Toggle quote (3 lines)
> Now, it would make more sense to simply remove those ‘console-font-ttyN’
> services in a container and everything that depends on them.

as pointed above the faining services are term-tty[1..6],
console-font-tty[1..6] fails but do not get respawned do they are not
the real issue

Toggle quote (2 lines)
> Not sure if we should do that automatically.

I'll try to remove term-tty[1..6] manually from services declaration, if
I manage to "manually" solve this I'll report here

Toggle quote (2 lines)
> Thoughts?

since mingetty does not make sense in a container I'd remove
term-tty[1..6] (and console-font-tty[1..6]) automatically and by default
when we create a container via "guix system container..."

Thanks!
Giovanni

--
Giovanni Biscuolo

Xelera IT Infrastructures
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlxinxAACgkQ030Op87M
ORIt9BAAgVP9H/WfUoc5byQh7CGfi79rOoLsFMUnm/QwBDrgAjHj7pqHgjVaMwfw
yZpLcHYCiyI3z7vVUvzX1nunxcwQricsfBffO9NmPOxmA4c7jaiaSGx40GM1nORg
hQ+r6aFD8OBfvDfxBGqGllunpGlU/+92hY5mAgqFrzkUI9pDdl0LeiXzqLOq5re0
hJMqF8z2oG4fBPCBu27/60R91w0bHGc68wC/Ht5vd+ZOYnuMj9bgoYl6AUrff5tG
RlLEv3dT7sU6LdUguEZ19q1mnkFc7MU4Ll0mWma023unATr/Jw5zXWVLJZMxgkcP
ynRKa4JeVnul7PGMAXkwJXxTbP+DD7dEq73IluP+4Z9U2nIcPnd9flVymMOfCAuo
ixalPOKxuZjr4UdQT2Hnv4ox8lWFgkfMsZWy+tOW9iBdh8T+S6/lvs8xXMH9fCdV
Hevvc/bvusvpGig87+WezwFFTOxayR5Y8hKlpWcMAHFt07qMEvhrucMgUiBQ+pWQ
mdbesEyrs+y36zBJ8Zn+uW7QfzGDS/D80d6Z1ilvNRVD+NmqZ19ZUp0eyl5RQR7P
TDvjRFmrlLu124hcIuWl0wIjXSuwt72EynDGohx6PQKE0ZlX13QXA7WbbYUNj8iz
f/SdXvtNcyx9yj/btbsLUc2ODQS1E2YD2QvQL43mmoz/tG78IcU=
=x/A1
-----END PGP SIGNATURE-----

G
G
Giovanni Biscuolo wrote on 13 Feb 2019 18:19
(name . Ludovic Courtès)(address . ludo@gnu.org)
874l97ehc7.fsf@roquette.mug.biscuolo.net
Hello,

Giovanni Biscuolo <g@xelera.eu> writes:

[...]

Toggle quote (3 lines)
> I'll try to remove term-tty[1..6] manually from services declaration, if
> I manage to "manually" solve this I'll report here

I tried but failed, I'm removing both mingetty and console-font from
%base-services list:

Toggle snippet (14 lines)
(services (cons* (service dhcp-client-service-type)
(service openssh-service-type
(openssh-configuration
(x11-forwarding? #t)
(permit-root-login 'without-password)
(authorized-keys
`(("gbiscuolo" ,(local-file "ssh-authorized-keys/gbiscuolo.pub"))))
(port-number 22)))
(remove (lambda (service)
(eq? (service-kind service) mingetty-service-type)
(eq? (service-kind service) console-font-service-type))
%base-services))))

but term-tty[1..6] and console-font-tty[1..6] processes still get
installed and started by herd

please any hint on how to "manually" remove those two failing services?

Thanks!
Giovanni

--
Giovanni Biscuolo

Xelera IT Infrastructures
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlxkUbgACgkQ030Op87M
ORJoJw//Ts6Vb9uelkhhWonrLWC1F5UtK0mS89RWQuDpOnYEGv8+zptChYrLr9wk
XeX8//FRh5abxwUxrxvs6KeFJxh166Sx7Wpl20YRCn0Bu6qG0LXEIZKCWgue9guS
aPvRzsroJKIfCzp4oA+5ChiwXCwfZp08XJO6P0tqpDlI9eHR3xMKPp9YFcfl1pGk
gHwabzrtH1hBI2M1r258CRhlu3YmH89ra2wsl2lQUCjV7e+IdjOsDbUWQo9T/bjg
FeXMpOUdqJybFYyIfeM+gGYG9tloHtYuokh8Tuz8XYurcpWUooPsQrBH3i9E3TS0
S00gpvRVfzdY2e4NkYBbD724GItAyTiOvUwr7wL6ofdr0z9QjL33nHIW/6ElRcpB
8AGy5Fv1D32Z7MwJQ7iGIr5qrWImPmzVDeemh0+gueDxI1z715YDhxtTa1wi7wDv
kswR5yb0pnTnp9aQpKEhfFJ/ffnjLZY46FWepI9IM+AzOKmTj37ynL8TmwEAzyqj
KyylQijBsmtbKZnhFMVp2dN3xUWowvr5xmE/TioXzKwMo5Jcsz0Vdl6LI00hQVnp
40CpDrGins4lidcNODOtSCY1tSeBUQ8zg1yPy8bL7GtzHdqiYt+FXqHN6A1UFYhl
LUFwITXH0RGgI0DWrBtAv02tHyaFf1isxYYEAOeoG9zuAuGe1+o=
=WKIp
-----END PGP SIGNATURE-----

A
A
Arun Isaac wrote on 14 Feb 2019 21:08
(name . Giovanni Biscuolo)(address . g@xelera.eu)
cu7va1mcevg.fsf@systemreboot.net
Toggle quote (2 lines)
> 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)

Notice the function call to service-type-name.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAlxlyrMACgkQLiXui2GA
K7MFxwf/VX3u0mUdQ7ezb6zqDBMHM3LWSx6uK/Oy4P9Wb6r5TPYTWJCfRKoJcCCv
5o1bEGNJa9SChLXx86hBVw3q24kMlWI1AoLicIbmhYbXPyF3S100DaivTPI8ZhWI
g7FamAIOk8FX8oUX4BGKezZiNnj7uGZqWYBaIqwBB24KXVzoqQFqTPf81dSAqoqb
sal40+KHs7aYWEVxuOy8sZ08LsQ0QqPvsS5Y252ir8v67uDyP+S80pP9320Sr/HF
tlIIJ9vb/YkhFUKqJcF6D12IFaqOhllEZArXbXNnaCvZ+Or/FgCq82npuqBUS4Lu
z4hRBZHyxTXqvqnw/x+FIz/7nOC5lg==
=IJ4X
-----END PGP SIGNATURE-----

G
G
Giovanni Biscuolo wrote on 15 Feb 2019 09:57
(name . Arun Isaac)(address . arunisaac@systemreboot.net)
87zhqxbf93.fsf@roquette.mug.biscuolo.net
Hi Arun,

Arun Isaac <arunisaac@systemreboot.net> writes:

Toggle quote (10 lines)
>> 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:
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlxmfwkACgkQ030Op87M
ORJ9cQ/+MAvz7KBvo+dyoUhc4F0zZXOwsYrHShWwHBpJ8+7JWnZvN8IEHGcVjtrR
d0ba+AZJ02dVc47Q7uFNMEtLIqM2AaBjeQO3NVBhvDr8P3/6hH2pAUtHVuFfCWoY
HdAufqTdisu9z97AT+pVliaqlp+d1uSC0YvczI4ixidjBWNgOQ4D+hZwrqpUCYnd
m5sYO87dZWPvQbHjU2n3EABfAIUXDxgbqio7ikYcffzcwPRtzpJLHLozgPn9LjWq
cDCRjAbcq1JCh9mKugklumLhnarFFqLcyr+BN++54t9arQrQVEOsvcBJEFo52gBK
ejlUxRK7YPalwqDa3f4ZSyxV5BBUyN/qgMbvzQqr2HR6PicL0XOgEamMq0T92N5Y
OOcYQf/7XNmC34J5T0or7RkmhGl5EqiXz+MqrwCUk/i8WaYbjkxuvZKtY56mrqL/
Lge/owBVRy38FDbDDgVLl0O5vgRwiDN06aO8UI50U9pDEIt9R4nj4dS7PV3p7qiE
uWjSB68VcN6NCjKsPfIEs/tgDbyfoRwaLwLWJz50mpXzohKQkYguDAE2p/8luJUm
BhfPt9rf6RvRknr5Z3yxlcKxHv4ePHmjQGwFQAztvYqCQdw2TsIaAxIRwKowTY2g
DcVeHXVZGqz2sb/9qO4HSQxN7XL5I1GZgTriB7wsaF4jm3hp4Ww=
=LdFW
-----END PGP SIGNATURE-----

it's _very_ lightweight so it'll not waste your store space, to test it
just do

Toggle snippet (5 lines)
$ rm container-minimal
$ guix system container container-minimal.scm -r container-minimal
$ sudo ./container-minimal

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
A
A
Arun Isaac wrote on 15 Feb 2019 11:39
(name . Giovanni Biscuolo)(address . g@xelera.eu)
cu7pnrtcp45.fsf@systemreboot.net
Toggle quote (10 lines)
>> 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

You need to use remove from (srfi srfi-1), not from (rnrs lists).

In your container-minimal.scm, replace

(use-modules (rnrs lists))

with

(use-modules (srfi srfi-1))
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAlxmltoACgkQLiXui2GA
K7P+uQgAqPdy/BonEGioKC4DEYMZUEIcqtcmpPyxM+OR/gMPC00cDp0qdIibV811
9BvMIgFCbvHLEkwGKoFxupPfeOP+ZPwRrkxrw/djmah1DE5zhVsNxNq+FY7I6wlg
2TM8nWLJHEfqKUp1bdHz9ZGPJ8J8uwsGLECaEWUM+PluqbUJ9I97AB6X0AcvgS5x
WbFBzu9LUN89mYtTFCLb+n7mdY1+0zX8y6dVS+EJXt25Rf3znsOmh92uqGE5DYEy
qP9B9nIL85L1r19fJU9kw/DyXQGcjOVwZ+Ksb7/UWIB0tAYQUvg0hUNxLoi542zQ
1TyXZNtKb7mL/p1lV8vqikXf/ZvWAA==
=q2M2
-----END PGP SIGNATURE-----

G
G
Giovanni Biscuolo wrote on 15 Feb 2019 12:34
(name . Arun Isaac)(address . arunisaac@systemreboot.net)
87k1i1b803.fsf@roquette.mug.biscuolo.net
Arun Isaac <arunisaac@systemreboot.net> writes:

Toggle quote (20 lines)
>>> 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
>
> You need to use remove from (srfi srfi-1), not from (rnrs lists).
>
> In your container-minimal.scm, replace
>
> (use-modules (rnrs lists))
>
> with
>
> (use-modules (srfi srfi-1))

it works! thank you for your patience Arun :-)

so it's possible to "manually" remove the unneeded mingetty and
console-fonts services from containers

how could it be automated?
should it be automated? (IMHO yes)

Thanks!
Giovanni

--
Giovanni Biscuolo

Xelera IT Infrastructures
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlxmo7wACgkQ030Op87M
ORJlaA//bS1d8i1P5El5BkUv1oNo44xrwy7DupTbJOZRMh82u+fyK3hWttrPi8Nd
GiNrgnBT6DM7W42DwugefNEqe0OYujBlRFncGAuJkYZ34x9KB05lcaTK+TXauADb
N/IEKLIsBlQfCmJPvLT5XgwW5/wNHpaUj/XZ6ITJyJ50cvrdO3Tdc1U7slsqMn+x
6EUnnbq9XpfsMeh76ODHi3fIw/JAUI773qYKbIvBtCIPYhi8Esq7B0v/fdWT98N6
kbV1mNHdAn2TFZPeNZGhY+tRrz0JARtba9jZBs1fLLN++ZyzeFBaLQnnH22o7JmP
vTBTyndsy1QBsMUP5H4rlnAiSccAae5ZR97+w+ZWBvRsiubm2mzY1Nvm3YKPBK7E
Jm2ukhTu+xXMEUMvT4+r4mRYi0ANysvzN/eg2sHusRybjTpEm+cOrDi838RLOl7I
jifCnoFcJ3tPsALgKGyiMT8jeEWhKpxR6fxgD987pNkDP/ln93AlcSLbfYnMEu+j
/ozhz7OUvhBXyWJ+fDdkyYaDZYyyjNqDaigBYhGIxbQCE89T0asEk2k2u+xXfWhJ
tHH60YC+7Pjwg7BeGZzBOSm1SmqnHSVzOVt9VWu9S40dZLkAo43xRHrzYD3YaU3+
219qvdCr0uuYG7o0MSn+YsHbdUKef83QlCdVvg9y/OcWVds0Cys=
=rUgb
-----END PGP SIGNATURE-----

A
A
Arun Isaac wrote on 15 Feb 2019 13:00
(name . Giovanni Biscuolo)(address . g@xelera.eu)
cu7mumxcldi.fsf@systemreboot.net
Toggle quote (5 lines)
> so it's possible to "manually" remove the unneeded mingetty and
> console-fonts services from containers
>
> how could it be automated? should it be automated? (IMHO yes)

I too believe it should be automated. But, I'll leave the others on this
thread to come to a decision.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAlxmqckACgkQLiXui2GA
K7Oc4ggAhWp7EoLGrofTC22DF7zVgT/5cRJRIn/UclJuVg/VRfsNJ35A1ibiKUhy
qrKiKyfbnKxmQ3X+yWw2cXr5pgcujf8TQa6U8vp7VNykdNHC0LxRRAvjYwL5BYTO
hCieH1MbiBe1zO9GzLD9hUasGJS12Q9JLh83mp0BaIeylvxm++oTHYm1jHXdVG4+
tXE4fs8rTgz5sDLUl0dqXojforwHSFDKZZqVYH6PM9igFToEG1n6wtTSGcykBW8E
RRmq9GdmC5GDgA7bKbeviQEyKK6iFM2mKiGWj2eCoaLnidob1Zr04N09SZ4sBN+Z
No2iqK02paw+CX9Pyz2IavaD8ueZdA==
=SYkX
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 13 Mar 2019 23:13
(name . Arun Isaac)(address . arunisaac@systemreboot.net)
87wol22zjh.fsf@gnu.org
Hi,

Arun Isaac <arunisaac@systemreboot.net> skribis:

Toggle quote (8 lines)
>> so it's possible to "manually" remove the unneeded mingetty and
>> console-fonts services from containers
>>
>> how could it be automated? should it be automated? (IMHO yes)
>
> I too believe it should be automated. But, I'll leave the others on this
> thread to come to a decision.

Done in b94c80ff5d844f7763738ab5359fee72f11f9367, thanks!

Ludo'.
Closed
?