[sisyphus] systemd & network on boot
alexei на taf.ru
alexei на taf.ru
Пн Авг 25 19:25:27 MSK 2014
----- Исходное сообщение -----
> От: "Денис Смирнов" <mithraen на freesource.info>
> Кому: sisyphus на lists.altlinux.org
> Отправленные: Понедельник, 25 Август 2014 г 23:49:53
> Тема: Re: [sisyphus] systemd & network on boot
>
> On Mon, Aug 25, 2014 at 11:43:18PM +0900, alexei на taf.ru wrote:
>
> Можете сделать следующее:
> - disable на эти service (оставив в enabled только path)
> - перезагрузиться
> - показать вывод systemctl status на все 4 юнита (и path, и service)
[root на metamorph system]# systemctl status altlinux-libresolv.path
● altlinux-libresolv.path - Update chrooted libresolv configs
Loaded: loaded (/lib/systemd/system/altlinux-libresolv.path; enabled)
Active: active (waiting) since Tue 2014-08-26 00:11:58 IRKT; 2min 23s ago
Aug 26 00:11:58 metamorph.taf.ru systemd[1]: Starting Update chrooted libresolv configs.
Aug 26 00:11:58 metamorph.taf.ru systemd[1]: Started Update chrooted libresolv configs.
[root на metamorph system]# systemctl status altlinux-libresolv.service
● altlinux-libresolv.service - Update chrooted libresolv configs
Loaded: loaded (/lib/systemd/system/altlinux-libresolv.service; disabled)
Active: inactive (dead) since Tue 2014-08-26 00:12:00 IRKT; 2min 25s ago
Process: 477 ExecStart=/etc/chroot.d/resolv.conf (code=exited, status=0/SUCCESS)
Main PID: 477 (code=exited, status=0/SUCCESS)
Aug 26 00:12:00 metamorph.taf.ru systemd[1]: Started Update chrooted libresolv configs.
[root на metamorph system]# systemctl status altlinux-openresolv.path
● altlinux-openresolv.path - Update openresolv data from systemd-resolved
Loaded: loaded (/lib/systemd/system/altlinux-openresolv.path; enabled)
Active: active (running) since Tue 2014-08-26 00:11:54 IRKT; 2min 45s ago
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
[root на metamorph system]# systemctl status altlinux-openresolv.service
● altlinux-openresolv.service - Update openresolv data from systemd-resolved
Loaded: loaded (/lib/systemd/system/altlinux-openresolv.service; disabled)
Active: active (exited) since Tue 2014-08-26 00:12:01 IRKT; 2min 42s ago
Process: 558 ExecStart=/bin/sh -c /sbin/resolvconf -a systemd-networkd < /run/systemd/resolve/resolv.conf (code=exited, status=0/SUCCESS)
Main PID: 558 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/altlinux-openresolv.service
Aug 26 00:12:01 metamorph.taf.ru systemd[1]: Started Update openresolv data from systemd-resolved.
Aug 26 00:12:02 metamorph.taf.ru systemd[1]: Started Update openresolv data from systemd-resolved.
Aug 26 00:12:02 metamorph.taf.ru systemd[1]: Started Update openresolv data from systemd-resolved.
Aug 26 00:12:03 metamorph.taf.ru systemd[1]: Started Update openresolv data from systemd-resolved.
Но при этом в /etc/resolv.conf имеем только:
# Generated by resolvconf
# Do not edit manually, use
# /etc/net/ifaces/<interface>/resolv.conf instead.
search ilimnet.ru
(В /etc/resolvconf.conf я добавил определение search_domains=ilimnet.ru)
systemctl restart altlinux-libresolv.service ничего не дает
После:
systemctl restart altlinux-openresolv.service
В /etc/resolv.conf наконец-то появляется долгожданное:
# Generated by resolvconf
# Do not edit manually, use
# /etc/net/ifaces/<interface>/resolv.conf instead.
search ilimnet.ru
nameserver 192.168.1.1
Подробная информация о списке рассылки Sisyphus