So I got bored the other day and set myself up a PXE boot server with some system utilities and a couple of Linux distros like Parted Magic and Arch. It's a slightly different setup than most tutorials as I have PFSense setup as the DHCP server and it redirects the clients to the PXE server which is CentOS 6.4 running on an old broken laptop (I mean physically broken. I've removed the built in display and keyboard since they had malfunctioned). Everything is working other than its not the greatest network speed but that isn't a big deal to me since this is more for learning. So then I decided Overclockix would be a good distribution to try this out on.
I cannot get it to work. First attempt I thought maybe I'd get lucky and just took the .iso file and pulled vmlinuz, initrd.img and the squashfs and set the pxelinux to boot with something like
But it became clear quickly that it was not receiving an IP. After studying how Arch was doing it, my guess was despite that the initramfs was built with auto and includes the nfs script it was missing something to support netbooting.
So I downloaded the live-build auto/config and config files from GIT and have been trying to build it with root NFS support. I've made several attempts at this so far changing things like --boot-images netbook and the like and have gotten so far as I know the initramfs is receiving an IP. But it still gets stuck on mounting the NFS share. It just keeps looping say device or resource is busy. I've checked and the NFS share can be mounted and its not SELinux or a firewall issue. I'm rebuilding the image now with --interactive shell enabled so hopefully I can drop to busybox and verify it can be mounted manually in the initramfs. NOW THE ACTUAL QUESTION:
I want to change /etc/initramfs-tools/initramfs.conf from
BOOT=local to BOOT=nfs
I've been studying the live-build documentation (this is my first time I've even messing with Debian before) and I'm not sure how to position my changes in the auto files correctly. From what I've understood it looks like if I write a .chroot file with something like
its going to be executed AFTER the filesystem is built which I assume means the initramfs will also have already been built. Does anyone know how to do this in the auto files? I'd rather do that than unsquash the filesystem, chroot it, change the initramfs.conf and update-initramfs, then repack. But in all the documentation I haven't found an explanation on how to change this that is clear to me.
Also if I've just missed something obvious and made an enormous project out of a very simple solution that would be great to hear as well
Thank you to anyone who could offer any suggestions.
I cannot get it to work. First attempt I thought maybe I'd get lucky and just took the .iso file and pulled vmlinuz, initrd.img and the squashfs and set the pxelinux to boot with something like
Code:
LINUX images/overclockix/live/vmlinuz
INITRD images/overclockix/live/initrd.img
APPEND root=/dev/nfs ip=dhcp noipv6 nfsroot=<localip>:/nfs/overclockix netboot=nfs
IPAPPEND 3
But it became clear quickly that it was not receiving an IP. After studying how Arch was doing it, my guess was despite that the initramfs was built with auto and includes the nfs script it was missing something to support netbooting.
So I downloaded the live-build auto/config and config files from GIT and have been trying to build it with root NFS support. I've made several attempts at this so far changing things like --boot-images netbook and the like and have gotten so far as I know the initramfs is receiving an IP. But it still gets stuck on mounting the NFS share. It just keeps looping say device or resource is busy. I've checked and the NFS share can be mounted and its not SELinux or a firewall issue. I'm rebuilding the image now with --interactive shell enabled so hopefully I can drop to busybox and verify it can be mounted manually in the initramfs. NOW THE ACTUAL QUESTION:
I want to change /etc/initramfs-tools/initramfs.conf from
BOOT=local to BOOT=nfs
I've been studying the live-build documentation (this is my first time I've even messing with Debian before) and I'm not sure how to position my changes in the auto files correctly. From what I've understood it looks like if I write a .chroot file with something like
Code:
sed 's/BOOT=local/BOOT=nfs/' -i /etc/initramfs-tools/initramfs.conf
Also if I've just missed something obvious and made an enormous project out of a very simple solution that would be great to hear as well
Thank you to anyone who could offer any suggestions.