Specifications
Remote Booting Linux on Intel Processors (CERN Variant)
Concurrent Technologies Page 20 of 30
NOTE: The Ram disk built later in this section will configure all network devices. The
above disables the Linux network-script from reconfiguring the network devices and
avoids the possibility of the NFS root file system mount being lost.
• Edit the CTRL-ALT-DELETE line in “home/ClientLocalRootFs/client1/etc/inittab” to
read,
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/reboot
• Copy the first client’s “etc” directory to the second,
“cp -a /home/ClientLocalRootFs/client1/etc/ /home/ClientLocalRootFs/client2/”
6. Cut and Paste the script below, save it to “/home/ClientCommonRootFs/sbin/reboot”
replacing the existing file, and type,
• “cd /home/ClientCommonRootFs/sbin”
• “dos2unix reboot” #Ensure the file is in Unix format
• “chmod 755 reboot” #Make the file executable
• “ln -s halt /home/ClientCommonRootFs/usr/sbin/reboot” #Link to halt ../usr/sbin/reboot
#!/bin/bash
# Sync the file systems
sync
# Then reboot
if [ $# == 0 ]
then
/usr/sbin/reboot -f
else
/usr/sbin/reboot $@
fi
7. For this example we have chosen not to use BusyBox to build the RamDisk and have used
instead a small set of standard functions. To create a root file system template on the Server
for the Client RamDisk, Cut and Paste the script below, save it to “/bin/mkramfs”, and type,
• “dos2unix /bin/mkramfs” #Ensure the file is in Unix format
• “chmod 755 /bin/mkramfs” #Make the file executable
• “mkramfs ClientRamDisk” #Creates the file system in the /tftpboot directory
#!/bin/sh
if [ $# != 1 ]
then
echo Usage: $0 client-name
exit 1
fi
cd /
umask 022