Hi all,
I'm interested in loading freedos under grub2 and attaching a virtual floppy to it
The aim being to have a folder on the disk containing several tar.gz files, each of which would show up as a menu entry - such that it is quick to add a new dos utilities (i.e. several different bios update files)
Below are a few different theoretical examples to append wdidle3.exe into FDSTD.288.imz
menuentry "memdisk FDSTD.288.imz" { loopback loop /bootisos/wdidle3_1_05.img linux16 /boot/grub/memdisk # magic : append files from (loop)? initrd16 /bootisos/FDSTD.288.imz } menuentry "concatenate initrd" { # wdidle3_1_05.img fat16 img containing wdidle3.exe linux16 /boot/grub/memdisk # magic : memdisk to accept concatenated images initrd16 /bootisos/FDSTD.288.img \ /bootisos/wdidle3_1_05.img } menuentry "concatenate files" { loopback loop /bootisos/FDSTD.288.gz loopback loop1 /bootisos/wdidle3_1_05.tar.gz # magic : new grub2 command? to build ramdisk # append files from (loop) and (loop1) freedos (rd)/kernel.sys } menuentry "wimboot FDSTD.288" { loopback loop /bootisos/FDSTD.288.gz loopback loop1 /bootisos/wdidle3_1_05.tar.gz linux16 /boot/grub/wimboot # magic : rewrite wimboot to !bootmgr # it'd be possible to loop over all files in loop+loop1 and append automatically initrd16 \ newc:kernel.sys:(loop)/kernel.sys \ newc:command.com:(loop)/command.com \ newc:wdidle3.exe:(loop1)/wdidle3.exe }
I'd prefer to reuse something if possible
Any existing modules/bins/code/examples/tips ?
Don't hesitate to post!