Integrating PartedMagic in Fog 1.2.0
- 
 
- 
 Thanks for the idea Thiago but that went belly up and right into windows startup. 
 kernel http://${fog-ip}/tftpboot/pmagic/partedmagic/pmagic/bzImage
 initrd http://${fog-ip}/tftpboot/pmagic/partedmagic/pmagic/initrd.imgis the relevant parts Im wondering if i should pull that tftpboot oudda there as its a nfs export? 
 /tftpboot/pmagic/partedmagic/ *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)Thank you for the ideas! 
- 
 @shaun With a web browser, can you access these two files? Replace the x’s with your FOG IP address and plug these into a browser’s address bar. What do you see? What happens? http://x.x.x.x/tftpboot/pmagic/partedmagic/pmagic/bzImage 
 http://x.x.x.x/tftpboot/pmagic/partedmagic/pmagic/initrd.imgI think I know the answer already, but I’m trying to shove you in the right direction so you can figure it out on your own… look at @Thiago 's example again… 
- 
 @Wayne-Workman said: @shaun With a web browser, can you access these two files? Replace the x’s with your FOG IP address and plug these into a browser’s address bar. What do you see? What happens? http://x.x.x.x/tftpboot/pmagic/partedmagic/pmagic/bzImage 
 http://x.x.x.x/tftpboot/pmagic/partedmagic/pmagic/initrd.imgI think I know the answer already, but I’m trying to shove you in the right direction so you can figure it out on your own… look at @Thiago 's example again… Thank you for your patience gang, Yes it says the requested url does not exist on the server with 404 so i did create a link within /fog/service/ipxe/ and it came UP! Then failed…LOL failed to load fu.sqfs …sheesh… at least we are on the right track before drailing… Well what ive done is the following: 
 :PMagic2015
 kernel http://${fog-ip}/fog/service/ipxe/partedmagic/pmagic/bzImage
 initrd http://${fog-ip}/fog/service/ipxe/partedmagic/pmagic/initrd.img <----
 imgargs bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=0 loglevel=0 keymap=us
 boot || echo Failed to boot
 promptIs where i want to change according to the sample_pxelinux.cfg with partedmagic is the following: Boot the kernel and initramfs over PXE 32-bit.LABEL pmagic32 
 LINUX pmagic/bzImage
 INITRD pmagic/initrd.img,pmagic/fu.img,pmagic/m32.img,pmagic/files.cgz
 APPEND edd=on vga=normalDo i have to put multiple http://$(fog-ip)… after initrd?? 
- 
 So what ive done so far: 
 -> Copied the mounted iso to a folder
 -> chmod 777 the entire folder now located in /var/www/fog/service/ipxe/partedmagic
 had the following:
 :PMagic2015
 kernel http://${fog-ip}/fog/service/ipxe/partedmagic/pmagic/bzImage
 initrd http://${fog-ip}/fog/service/ipxe/partedmagic/pmagic/initrd.img
 imgargs bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=0 loglevel=0 keymap=us
 boot || echo Failed to boot
 prompt
 goto startIt would start to load then fail with 
 mount /dev/loop252 failed to find superblock
 fu.sqfs failed to mountLooked at the sample_pxelinux.cfg again from parted magic Boot the kernel and initramfs over PXE 32-bit.LABEL pmagic32 
 LINUX pmagic/bzImage
 INITRD pmagic/initrd.img,pmagic/fu.img,pmagic/m32.img,pmagic/files.cgz
 APPEND edd=on vga=normalTried to make that work: :PMagic2015 
 kernel http://${fog-ip}/fog/service/ipxe/partedmagic/pmagic/bzImage
 initrd http://${fog-ip}/fog/service/ipxe/partedmagic/pmagic/initrd.img,http://$(fog-ip)/fog/service/ipxe/partedmagic/pmagic/fu.img,http://$(fog-ip)/fog/service/ipxe/partedmagic/pmagic/m32.img,http://$(fog-ip)/fog/service/ipxe/partedmagic/pmgaic/files/cgz
 imgargs bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=0 loglevel=0 keymap=us
 boot || echo Failed to boot
 prompt
 goto startWhich then goes straight to Windows 7 startup… Looked up the mount loop252 error and found looks like the kernel is trying to mount iso so got the pmagic pxe file and untarred int /fog/service/ipxe/ From their stanza.txt 
 DEFAULT pmagic32LABEL pmagic32 
 LINUX pmagic/bzImage
 INITRD pmagic/initrd.img,pmagic/fu.img,pmagic/m32.img,pmagic/files.cgz
 APPEND edd=on vga=normalFirst tried with: 
 :PMagic2015
 kernel http://${fog-ip}/fog/service/ipxe/pmagic/bzImage
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/initrd.img
 imgargs bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=0 loglevel=0 keymap=us max_loop=256 vmall
 boot || echo Failed to boot
 prompt
 goto startThat still came up with failed to mount /dev/loop252 fu.sqfs so I changed it to: :PMagic2015 
 kernel http://${fog-ip}/fog/service/ipxe/pmagic/bzImage
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/initrd.img,http://$(fog-ip)/fog/service/ipxe/pmagic/fu.img,http://$(fog-ip)/fog/service/ipxe/pmagic/m32.img,http://$(fog-ip)/fog/service/ipxe/pmagic/files.cgz
 imgargs bzImage edd=on noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=normal sleep=0 loglevel=0 keymap=us
 boot || echo Failed to boot
 prompt
 goto startWhich fails and goes straight to windows 7 boot. I guess it comes down to how do i add: 
 INITRD pmagic/initrd.img,pmagic/fu.img,pmagic/m32.img,pmagic/files.cgz
 as a 1 liner??This 
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/initrd.img,http://$(fog-ip)/fog/service/ipxe/pmagic/fu.img,http://$(fog-ip)/fog/service/ipxe/pmagic/m32.img,http://$(fog-ip)/fog/service/ipxe/pmagic/files.cgzFails. Thanks for both your patience and help! 
- 
 Aaand this fails and goes to windowsw 7 startup … 
 :PMagic2015
 kernel http://${fog-ip}/fog/service/ipxe/pmagic/bzImage
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/initrd.img
 initrd http://$(fog-ip)/fog/service/ipxe/pmagic/fu.img
 initrd http://$(fog-ip)/fog/service/ipxe/pmagic/m32.img
 initrd http://$(fog-ip)/fog/service/ipxe/pmagic/files.cgz
 imgargs bzImage edd=on noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=normal sleep=0 loglevel=0 keymap=us max_loop=256 vmall
 boot || echo Failed to boot
 prompt
 goto start…eerrrrggg… 
- 
 @shaun ok… going to try to point you into the right direction. Take copies of the init and kernel, and put just those in a web folder somewhere. Put the ISO into an NFS exported directory. /images is already exported. you could put it in something like /images/pmagic/YourIsoHere.isoDoing those two things, and making changes as needed to the kernel and initrd paths, you next need to load the iso. Look at the hirens boot cd example in the wiki. Here’s the lines that load and then cause the boot to happen. set nfs_path /var/www/fog/ISO/15.04_64 imgargs vmlinuz.efi root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:${nfs_path} ip=dhcp splash quiet – || read void boot || read voidOf course, that’s for hirens. For this, if you’re using the already good to go /images directory as I suggested above, this might look something like: set nfs_path /images/pmagic imgargs bzimage root=/dev/nfs boot=casper netboot=nfs nfsroot=${fog-ip}:${nfs_path} ip=dhcp splash quiet – || read void boot || read voidAlso - we might not get this on the first try. And - it may be a good idea to ask the guys over at ipxe.org They are friendly and have helped me before. -> http://forum.ipxe.org/showthread.php?tid=5948 
- 
 Thanks very much for your patience and it did indeed lead me to the right cliff to jump off of. set nfs_path /images/pmagic 
 kernel http://${fog-ip}/fog/service/ipxe/pmagic/bzImage
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/initrd.img
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/files.cgz
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/fu.img
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/m32.img
 imgargs bzImage root=/dev/nfs boot=live netboot=nfs nfsroot=${fog-ip}:${nfs_path} ip=dhcp edd=on noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=normal sleep=0 loglevel=0 keymap=us splash quiet - || read void
 boot || read void
 prompt
 goto startWorks! I had to move the inits around a bit so files had to come first then fu the m32 and also works in 64 as well. Thanks Thiago and Wayne! 
- 
 @shaun said: Thanks very much for your patience and it did indeed lead me to the right cliff to jump off of. set nfs_path /images/pmagic 
 kernel http://${fog-ip}/fog/service/ipxe/pmagic/bzImage
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/initrd.img
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/files.cgz
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/fu.img
 initrd http://${fog-ip}/fog/service/ipxe/pmagic/m32.img
 imgargs bzImage root=/dev/nfs boot=live netboot=nfs nfsroot=${fog-ip}:${nfs_path} ip=dhcp edd=on noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=normal sleep=0 loglevel=0 keymap=us splash quiet - || read void
 boot || read void
 prompt
 goto startWorks! I had to move the inits around a bit so files had to come first then fu the m32 and also works in 64 as well. Thanks Thiago and Wayne! Tagging this for addition to the wiki 
- 
 @shaun What version of Parted Magic were you using, exactly? 
- 
 @shaun This has been added to the Wiki here: https://wiki.fogproject.org/wiki/index.php?title=Include_any_ISO_in_the_FOG_Bootmenu I filled in the gaps that @shaun left out, because we still needed mounting and such and he didn’t include that. And because he didn’t include a specific parted magic version, I dated the content in the article itself so that hopefully future readers can google search and find the version it applies to. 
- 
 @Wayne-Workman 
 Hi Wayne it is PartedMagic_2015_11_13. Thanks again for the help.
- 
 @Wayne-Workman 
 Hi Wayne, sorry been running around abit here lately for the mounting i am using nfs and in the exports:
 /images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,fsid=1)
 Hopefully helps others out.

