/* Code fragment from ramdisk.c */
/* Old code - only load ramdisk if booting from floppy */
if (MAJOR(ROOT_DEV) != FLOPPY_MAJOR) {
return 0;
printk(KERN_NOTICE "VFS: Insert ramdisk floppy and press
ENTER\n");
wait_for_keypress();
}
... code to load ramdisk from block device
/* New code - always try to load ramdisk */
if (MAJOR(ROOT_DEV) == FLOPPY_MAJOR) {
/* Load even from hard disk */
/* or from EPROM disk */
printk(KERN_NOTICE "VFS: Insert ramdisk floppy and press
ENTER\n");
wait_for_keypress();
}
... code to load ramdisk from block device
Copyright © 1994 - 2019 Linux Journal. All rights reserved.