Answered my own question:
The command:
find . | cpio --create --format='newc' > /path/to/target,
where target is the name of the new initrd, does the trick, so long as it
is executed from the directory containing the files to be placed into the
initrd.
I took the files from a puppy, deleted the sfs file, leaving initrd.gz
and vmlinuz, and booted that up with grub4dos. Takes five seconds to boot,
and can mount usb,cdrom, and any partition on the hard drive.
The intent was to "call" the puplet from dos by switching menu.lst,then
rebooting to the puplet;
Then do the same from the puplet back to dos. Not elegant, but the puplet
is only about 4.5 MB and boots fast.
Problem now is that the reboot command, while present proforma in the
initrd, does nothing but return to the prompt. The exit command produces a
kernel panic. I tried inserting the reboot from the sfs, and the rc.d it
refers to into the initrd, but it references too many other things on the
sfs, a real rats nest, it seems. So have to do a cold boot out of the
ramdisk.
Any ideas hoe to do the warmboot?
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel