Re: With F36 systemd-nspawn test environment not usable, no login possible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Di, 05.07.22 14:38, Dominique Martinet (asmadeus@xxxxxxxxxxxxx) wrote:

> Peter Boy wrote on Tue, Jul 05, 2022 at 07:19:28AM +0200:
> > […]# dnf --releasever=36 --best --setopt=install_weak_deps=False \
> >     --installroot=/var/lib/machines/testf36  install dhcp-client dnf \
> >     fedora-release glibc glibc-langpack-en iputils less ncurses passwd \
> >     systemd systemd-networkd vim-default-editor
> >
> > I can set a password using
> >
> > […]# systemd-nspawn -D /var/lib/machines/testf36   passwd
> >
> > I create a container with
> >
> > […]# systemd-nspawn -D /var/lib/machines/testf36  -b
>
> If you check the syslog of that machine (don't ask me how, I just
> straced agetty)

Use this on the host

   journalctl -f -M testf36

This allows you to watch the logs for the running container live.

> you'll see it complain that there is no /bin/login: you just need to
> install util-linux (or possibly busybox) and you'll get a prompt,
> login should work as well.

This smells as a bug in in the package providing getty. getty cannot
work without /bin/login, hence the package should have a dep on it.

Lennart

--
Lennart Poettering, Berlin
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux