Re: ypbind not enabled after installation
Henning Glawe <[email protected]>
| Newsgroups | gmane.linux.debian.fai |
|---|---|
| Message-ID | <ZR7bqRtH+uhsca/c@safflower> |
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: [email protected] Building/Room: 99/O2.100, Phone: +49-40-8998-88392