SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to setup Slackware as a server for diskless clients with NFS root. I'm aware of the LTSP and DRBL projects - but they seem to be quite distribution specific. I would like to turn Slackware into a server for diskless clients using rather more standard tools - so that I can apply the procedure to other distros - if necessary - but mainly so that I can use Slackware :-) for it.
I've followed the various online howtos and I've setup pxelinux, tftp, dhcp and nfs - and it all seems to work fine - sort of :-).
The stumbling block is the initrd - which in Slackware (and maybe elsewhere?) doesn't have support for dhcp - and it doesn't seem to be possible to create an initrd image using mkinitrd which includes dhcp support. Thus the client machine boots, loads the kernel, hands over to initrd, which loads the NIC driver and does whatever else it does - but when trying to mount the NFS share for the root partition - it fails as there is no network/IP setup.
Has anybody managed to set Slackware up as a server for diskless clients? Maybe by hacking the initrd image included with the Slackware CD-rom and making their own custom scripts for network support? Any other ideas?
From looking around on the Internet, I have to conclude that diskless clients are not exactly popular with Linux nowadays - outside of the LTSP and DRBL projects. Am I wrong?
I have not tried this myself, but from /usr/lib/setup/SeTnet in the Slackware installer
Quote:
# This script will be called with the single argument of "boot" during the
# system startup, to allow for unattended network configuration.
# For this to work, all required information must be passed on the commandline.
# Two parameters, 'kbd=' and 'nic=' must be used to supply this information.
# kbd=<keyboard_layout>
# nic=<driver>:<interface>:<dhcp|static>[:ipaddr:netmask[:gateway]]
I have not tried this myself, but from /usr/lib/setup/SeTnet in the Slackware installer
That's unreated to this question. The Slackware installer has network support of course. The OP's question was how to add network support to the initrd which you create after installation, using mkinitrd.
Yes - that's correct - I was trying to use the standard mkinitrd to get nfs root working in Slackware. I think I would also need udev support in initrd - as I tried hacking the init script and it couldn't find the network device to use it for dhcp (although the kernel module was loaded) - probably because udev didn't create the device under /proc/net/dev (there is nothing there). I've tried using the udev option in /etc/mkinitrd.conf - but still didn't make a difference.
I didn't realise that nfs root booting, and diskless setups in general are such a non-standard affair. Although there seem to be a myriad of ways and tools to do it - aside from LTSP and DRBL - there is little in the way of minimally modifying a standard distro to make it work in a diskless setup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.