$bootdisk_mounted = 0; sub mount_bootdisk { local ($kernelname, $bootfs); if ($kernel_available) { return; } if ($bootdisk_mounted) { return; } if ($instarch eq "i386") { $kernelname = "vmlinuz"; $bootfs = "umsdos"; } else { $kernelname = "vmlinux.gz"; $bootfs = "ext2"; } &rhs_msgbox ( "Boot Floppy", ">\n" . "Now please remove the floppy from your first drive and insert the\n" . "boot floppy. During the installation, the kernel will be\n" . "copied from the boot floppy to your hard drive.\n" . ">\n" . "Please insert your BOOT disk (not the ROOT disk) in /dev/fd0 (DOS drive A:).\n" . ">\n", 70); if ($rh_testing) { $bootdisk_mounted = 1; return 1; } &invoke("mount -t $bootfs -o ro /dev/fd0 /bootdisk"); while (! -f "/bootdisk/$kernelname") { &invoke_no_output("umount /bootdisk"); &rhs_msgbox ( "Boot Floppy", < That was not the boot floppy disk! > Be sure you are inserting the BOOT FLOPPY DISK in /dev/fd0 (DOS drive A:). > EOM , 70); &invoke("mount -t $bootfs /dev/fd0 /bootdisk"); } $bootdisk_mounted = 1; } sub umount_bootdisk { if ($kernel_available) { return; } if ($bootdisk_mounted) { &invoke("umount /bootdisk"); } $bootdisk_mounted = 0; } 1;