systemd-nspawn and /run/resolvconf/resolv.conf
Ralf Mardorf
ralf.mardorf at alice-dsl.net
Tue Sep 22 08:31:48 UTC 2015
On Tue, 22 Sep 2015 10:19:11 +0200, Ralf Mardorf wrote:
>On Mon, 21 Sep 2015 21:51:35 -0400, Tom H wrote:
>>"systemd-nspawn -bD ...".
>
>I missed this.
>
> -b --boot
>
>I'll test it now ...
[rocketmouse at archlinux ~]$ sudo mv -i /mnt/moonstudio/etc/resolv.conf /mnt/moonstudio/etc/resolv.conf.fix
[rocketmouse at archlinux ~]$ sudo mv -i /mnt/moonstudio/etc/resolv.conf.bak /mnt/moonstudio/etc/resolv.conf
[rocketmouse at archlinux ~]$ ls -l /mnt/moonstudio/etc/resolv.conf
lrwxrwxrwx 1 root root 29 Jul 25 22:50 /mnt/moonstudio/etc/resolv.conf -> ../run/resolvconf/resolv.conf
[rocketmouse at archlinux ~]$ sudo systemd-nspawn -qbD /mnt/moonstudio
[snip]
Ubuntu Wily Werewolf (development branch) moonstudio console
moonstudio login: root
Password:
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
[root at moonstudio ~]# apt-get update
Err http://de.archive.ubuntu.com wily InRelease
Err http://de.archive.ubuntu.com wily-updates InRelease
Err http://de.archive.ubuntu.com wily-backports InRelease
Err http://security.ubuntu.com wily-security InRelease
Err http://security.ubuntu.com wily-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://de.archive.ubuntu.com wily Release.gpg
Temporary failure resolving 'de.archive.ubuntu.com'
Err http://de.archive.ubuntu.com wily-updates Release.gpg
Temporary failure resolving 'de.archive.ubuntu.com'
Err http://de.archive.ubuntu.com wily-backports Release.gpg
Temporary failure resolving 'de.archive.ubuntu.com'
^Cading package lists... 33%
[root at moonstudio ~]#
[root at moonstudio ~]# mv -i /etc/resolv.conf /etc/resolv.conf.bak
[root at moonstudio ~]# mv -i /etc/resolv.conf.fix /etc/resolv.conf
[root at moonstudio ~]# ls -l /etc/resolv.*
-rw-r--r-- 1 root root 48 Sep 22 08:43 /etc/resolv.conf
lrwxrwxrwx 1 root root 29 Jul 25 22:50 /etc/resolv.conf.bak -> ../run/resolvconf/resolv.conf
[root at moonstudio ~]# apt-get update
Ign http://security.ubuntu.com wily-security InRelease
Ign http://de.archive.ubuntu.com wily InRelease
Hit http://security.ubuntu.com wily-security Release.gpg
Ign http://de.archive.ubuntu.com wily-updates InRelease
Hit http://security.ubuntu.com wily-security Release
Ign http://de.archive.ubuntu.com wily-backports InRelease
Hit http://de.archive.ubuntu.com wily Release.gpg
Hit http://security.ubuntu.com wily-security/main Sources
Hit http://de.archive.ubuntu.com wily-updates Release.gpg
Hit http://security.ubuntu.com wily-security/restricted Sources
Hit http://de.archive.ubuntu.com wily-backports Release.gpg
It's the same issue. It only works without the link, but starting in the
container takes longer. The only advantage seems to be the possibility to
login as user without root privileges.
Regards,
Ralf
More information about the Ubuntu-devel-discuss
mailing list