# Put a SysLinux configuration file on the floppy
echo "Creating a /syslinux.cfg configuration file on the floppy"
echo "append initrd=filesys root=/dev/ram0" > tempfs/syslinux.cfg
# Unmount the floppy
echo "Unmounting the floppy"
sync;sync
umount -r tempfs 2> /dev/null
umount -l tempfs 2> /dev/null
# Run syslinux to make the floppy bootable
echo "Running syslinux to make the floppy bootable"
syslinux /dev/fd0
# Remove the temporary files now that we're done with them
echo "Cleaning up (deleting) 'fs', 'filesys', and 'tempfs'"
rm fs
rm filesys
rm -r tempfs
# Done
echo "Done. At least if everything WORKED it's done!"