~2012

Boot Linux Mint Debian Edition through PXE

Like all Debian based distro's it's very easy to boot the installer through PXE. However with Linux Mint this is not the case? Why? I don't know yet but since the installer of Linux Mint is just a live CD using casper we can boot the whole live system with a little help from NFS through PXE

__I presume you have a working tftp and PXE setup! __

First download the iso, get yourself a closeby mirror:

wget http://mintlinux.mirror.triple-it.nl/iso/stable/debian/linuxmint-xfce-201104-dvd-32bit.iso
wget http://mintlinux.mirror.triple-it.nl/iso/stable/debian/linuxmint-xfce-201104-dvd-64bit.iso

After download mount the CD:

mount -t iso9660 linuxmint-xfce-201104-dvd-32bit.iso /mnt -o loop

Then make a dir in your tftproot (in my case /var/lib/tftpboot). __It is important to have a directory named 'live' in the root of your mint-lmde directory. Otherwise it won't work __

mkdir -p /var/lib/tftpboot/mint-lmde/live

Copy the contents of the "casper" dir on the CD to the created directory

cp -r /mnt/casper/* /var/lib/tftpboot/mint-lmde/live/

Now add the following lines to your pxelinux.cfg/default

################################################
#
#       LINUX MINT RELEASES
#
#################################################

label mint-lmde
        kernel mint-lmde/live/vmlinuz
        append root=/dev/nfs live-media-path=/live boot=live initrd=mint-lmde/live/initrd.lz netboot=nfs nfsroot=<yournfsserver>:/your/exported/dir/to/mint-lmde nosplash --

Export the 'mint-lmde' dir with NFS. Add to your /etc/exports file:

/var/lib/tftpboot/mint-lmde *(ro,subtree_check,no_root_squash)

At least I can install Mint now however my experience was really bad. :( The system couldn't update, apt keys were expired, repository url's were broken. I think Mint is really taking a wrong direction not supporting all Debian installer's options. CD's are sooo pre 2000. Why don't they have the textmode installer? It's way more robust. Why can't I install directly from the network repositories?