Re: ypbind not enabled after installation
Moin, On Thu, Oct 05, 2023 at 05:22:57PM +0200, Julien Vion via linux-fai wrote: > I tried that with in script/NIS/90-misc: > > /lib/systemd/systemd-sysv-install enable ypbind > ln -s /lib/systemd/system/ypbind.service /etc/systemd/system/multi- > user.target.wants/ypbind.service > > > I have this error during install: > error: initscript does not exist: /etc/init.d/ypbind Looks like a missing prefix ``$ROOTCMD`` in your ``90-misc`` lines. During FAI install, $ROOTCMD expands to ``chroot $FAI_ROOT``, while on sofupdates it is empty. Background info: - When doing the initial install, your target 'root' and its children are mounted in a subdir of your current root (which is usually the nfsroot), so a ``chroot ...`` is required to work - when running ``fai softupdate``, you are working on ``/``, so the chroot is not required - using $ROOTCMD prefix for everything to be run inside the target system catches both cases in a convenient and readable way -- Mit freundlichen Grüßen Henning Glawe Dr. Henning Glawe Max-Planck-Institut für Struktur und Dynamik der Materie Geb. 99 (CFEL), Luruper Chaussee 149, 22761 Hamburg, Germany http://www.mpsd.mpg.de/, Email: henning.gl...@mpsd.mpg.de Building/Room: 99/O2.100, Phone: +49-40-8998-88392
Re: ypbind not enabled after installation
Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die eigentliche Nachricht steht dadurch in einem Anhang. This message was wrapped to be DMARC compliant. The actual message text is therefore in an attachment.--- Begin Message --- Hi, Le jeudi 05 octobre 2023 à 16:50 +0200, Thomas Lange a écrit : > But systemctl enable only creates a symlink, so ln -s should help. I tried that with in script/NIS/90-misc: /lib/systemd/systemd-sysv-install enable ypbind ln -s /lib/systemd/system/ypbind.service /etc/systemd/system/multi- user.target.wants/ypbind.service I have this error during install: error: initscript does not exist: /etc/init.d/ypbind Somehow the link is not here upon reboot, but /etc/init.d/ypbind is. Yours, -- Julien Vion Maitre de conférences Chef du département Info IUT de Valenciennes/Cambrai/Maubeuge LAMIH CNRS Université Polytechnique Hauts de France signature.asc Description: This is a digitally signed message part --- End Message ---
Re: ypbind not enabled after installation
> On Thu, 05 Oct 2023 16:04:58 +0200, Julien Vion via linux-fai > said: > Somehow, "systemctl enable" in the script does not work. Currently FAI does not start systemd during the installation. That's why a systemctl call in a script cannot work. But systemctl enable only creates a symlink, so ln -s should help. The next FAI version will use systemd during the installation. -- regards Thomas
Re: ypbind not enabled after installation
On the ypclient: In /etc/default/nis set NISCLIENT=true In /etc/yp.conf set the yp (master and slave) server IP addresses On the yp master+slave servers: In /etc/yp.conf set the yp (master and slave) server IP addresses In /etc/ypserv.securenets list all IP addresses of all yp clients so the ypserver accepts yp requests Andreas
Re: ypbind not enabled after installation
Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die eigentliche Nachricht steht dadurch in einem Anhang. This message was wrapped to be DMARC compliant. The actual message text is therefore in an attachment.--- Begin Message --- Hi again, Apparently, it is intended behavior that ypbind is not enabled by default, as it would hang if /etc/defaultdomain is not defined. But I need to find a way to enable it automatically once the defaultdomain is fcopied. Somehow, "systemctl enable" in the script does not work. > I am currently installing FAI to manage several CS hands-on labs using Debian > 12 > bookworm. > Student authentication is managed using NIS. I created a NIS class in FAI > config, and added the packages nis, unscd and libnss-nis to > package_config/NIS. > > For some reason, the ypbind service is not started nor enabled upon reboot > after > installation. It is correctly installed and configured (as long as I can > figure > out), but I have to run "systemctl enable ypbind" and "systemctl start ypbind" > manually on each machine before it starts working. > > I tried to add the two lines before to scripts/NIS/90-misc but then I get this > error during install: > > scripts.log:Failed to enable unit, unit ypbind.service does not exist. > > I also tried to add > > ln -s /lib/systemd/system/ypbind.service /etc/systemd/system/multi- > user.target.wants > > or > > /lib/systemd/systemd-sysv-install enable ypbind > > in the script instead, but it won't work either. "systemctl enable" will only > work correctly after first reboot. > > I cannot find any other error related to ypbind in the logs. > > Any clues? Maybe it is a bug in the Debian ypbind package? -- Julien Vion Maitre de conférences Chef du département Info IUT de Valenciennes/Cambrai/Maubeuge LAMIH CNRS Université Polytechnique Hauts de France --- End Message ---
ypbind not enabled after installation
Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die eigentliche Nachricht steht dadurch in einem Anhang. This message was wrapped to be DMARC compliant. The actual message text is therefore in an attachment.--- Begin Message --- Hi all, I am currently installing FAI to manage several CS hands-on labs using Debian 12 bookworm. Student authentication is managed using NIS. I created a NIS class in FAI config, and added the packages nis, unscd and libnss-nis to package_config/NIS. For some reason, the ypbind service is not started nor enabled upon reboot after installation. It is correctly installed and configured (as long as I can figure out), but I have to run "systemctl enable ypbind" and "systemctl start ypbind" manually on each machine before it starts working. I tried to add the two lines before to scripts/NIS/90-misc but then I get this error during install: scripts.log:Failed to enable unit, unit ypbind.service does not exist. I also tried to add ln -s /lib/systemd/system/ypbind.service /etc/systemd/system/multi- user.target.wants or /lib/systemd/systemd-sysv-install enable ypbind in the script instead, but it won't work either. "systemctl enable" will only work correctly after first reboot. I cannot find any other error related to ypbind in the logs. Any clues? Maybe it is a bug in the Debian ypbind package? Yours, -- Julien Vion Maitre de conférences Chef du département Info IUT de Valenciennes/Cambrai/Maubeuge LAMIH CNRS Université Polytechnique Hauts de France signature.asc Description: This is a digitally signed message part --- End Message ---