[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
howtos:network_services:nfs_root [2018/05/28 22:11 (UTC)] – [Configuring LILO] bifferoshowtos:network_services:nfs_root [2018/05/28 22:21 (UTC)] (current) – [First Boot] bifferos
Line 121: Line 121:
 None of the modules have been installed, let's add them.  Shutting down the nfsroot system and booting back into the Slackware kernel compilation virtual machine we can now compile the missing modules.  First we will mount the rootfs, just as we did from the installer virtual machine: None of the modules have been installed, let's add them.  Shutting down the nfsroot system and booting back into the Slackware kernel compilation virtual machine we can now compile the missing modules.  First we will mount the rootfs, just as we did from the installer virtual machine:
  
-<code>mount -o rw,nolock slack-nfs-server:/nfs_share /mnt</code>+<code>mount -o rw,nolock slack-nfs-server:/nfs_share /mnt/tmp</code>
  
 Then we can compile and install the modules: Then we can compile and install the modules:
Line 127: Line 127:
 <code># cd /usr/src/linux <code># cd /usr/src/linux
 # make modules # make modules
-# make modules_install INSTALL_MOD_PATH=/mnt</code>+# make modules_install INSTALL_MOD_PATH=/mnt/tmp</code>
  
-For the last command, try to avoid adding a trailing slash to /mnt, and try not to forget the INSTALL_MOD_PATH, otherwise you've just clobbered your system modules.  If you gave your kernel a local suffix (e.g. -nfsroot) you'd have been protected against that.+For the last command, avoid adding a trailing slash to /mnt/tmp, and try not to forget the INSTALL_MOD_PATH, otherwise you may have just clobbered your system modules.  If you gave your kernel a local suffix (e.g. -nfsroot) you'd have been protected against that.
  
 === Swap on NFS === === Swap on NFS ===
Line 157: Line 157:
 <code>/nfs_share 172.17.0.81/32(rw,sync,no_root_squash,no_subtree_check)</code> <code>/nfs_share 172.17.0.81/32(rw,sync,no_root_squash,no_subtree_check)</code>
  
-And we presumably don't want all-and-sundry using our newly prepared rootfs directory, so drop it down a level and qualify it by IP address:+And we presumably don't want all-and-sundry using our newly prepared rootfs directory, so drop it down a level and qualify it by IP address (on the server):
  
 <code># cd / <code># cd /
Line 164: Line 164:
 # mv 172.17.0.81 nfs_share</code> # mv 172.17.0.81 nfs_share</code>
  
-Now over on the client machine, having booted into the kernel compilation machine, configure lilo so nfsroot+Now over on the client machine, configure LILO so nfsroot
 requests the nfs share based on the client's IP address with '%s': requests the nfs share based on the client's IP address with '%s':
  
Line 174: Line 174:
 NFS Root is never going to be considered secure, but at least this makes cross-contamination of nfsroots less likely. NFS Root is never going to be considered secure, but at least this makes cross-contamination of nfsroots less likely.
  
 +Note that I am using dhcp in the above example, but I've added an entry to /etc/dnsmasq.conf on my router mapping the thin client MAC address to the IP address 172.17.0.81 so the client always gets that address.
  
  
 howtos:network_services:nfs_root ()