Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
Now create a file called /media/.iso-fs.map using your favourite editor with the following contents:
{{CodeText|CodeText=#!/bin/bash
DIR_LIST=(/var/hda/files/torrents /home/*/Downloads)
iso=`find ${DIR_LIST[@]} -name $1.iso -type f`
The final step is to create an entry in the master automount map. Edit /etc/auto.master and add the following line somewhere after the default /net entry:
{{CodeText|CodeText=/media/iso-fs /media/.iso-fs.map ro,loop --timeout=5
}}
The last stage in setting up the menus, we need to add an entry in pxelinux.cfg/default to link to the generated menus. Open pxelinux.cfg/default in your favourite editor and add:
{{CodeText|Text=
LABEL linux-boot
MENU LABEL Boot from ISO images
With the menus created, we just have two final steps to take. First, the kernel and initrd need to be available under the tftp directory structure. Fortunately, the automounter can take care of this for us; simply add the following additional to /etc/auto.master:
{{CodeText|CodeText=/usr/share/amahi-netboot/tftp/iso-boot/mnt /media/.iso-fs.map ro,loop --timeout=5
}}
...and then restart the automounter:
Secondly, we need to enable NFS and export the relevant directories. Assuming you have NFS installed and running, edit /etc/exports to add:
{{CodeText|CodeText=/media 192.168.147.0/24(ro,crossmnt)
}}
And then issue service nfs restart to load the new export table.
287

edits