diff -NurbP --minimal linux-2.4.22-pre6-fix/Documentation/Configure.help linux-2.4.22-pre6-fix-ffb/Documentation/Configure.help --- linux-2.4.22-pre6-fix/Documentation/Configure.help Sun Jul 6 22:54:52 2003 +++ linux-2.4.22-pre6-fix-ffb/Documentation/Configure.help Wed Jul 9 23:00:08 2003 @@ -15983,6 +15983,18 @@ Most people say N here. +Disable Fallback to Floppy +CONFIG_NO_FLOPPY_FALLBACK + If root file system on NFS is enabled but the root device isn't + /dev/nfs (or the NFS root can not be mounted for any other reason) + the kernel usually falls back to a floppy boot. + + This option will disable the default behaviour, which could be a + security risk, allowing either to boot from a specified root device + or not at all. + + If unsure say N here. + NFS server support CONFIG_NFSD If you want your Linux box to act as an NFS *server*, so that other diff -NurbP --minimal linux-2.4.22-pre6-fix/fs/Config.in linux-2.4.22-pre6-fix-ffb/fs/Config.in --- linux-2.4.22-pre6-fix/fs/Config.in Sun Jul 6 22:55:05 2003 +++ linux-2.4.22-pre6-fix-ffb/fs/Config.in Wed Jul 9 22:49:40 2003 @@ -108,6 +108,7 @@ dep_mbool ' Provide NFSv3 client support' CONFIG_NFS_V3 $CONFIG_NFS_FS dep_mbool ' Allow direct I/O on NFS files (EXPERIMENTAL)' CONFIG_NFS_DIRECTIO $CONFIG_NFS_FS $CONFIG_EXPERIMENTAL dep_bool ' Root file system on NFS' CONFIG_ROOT_NFS $CONFIG_NFS_FS $CONFIG_IP_PNP + dep_bool ' Disable Floppy Fallback' CONFIG_NO_FLOPPY_FALLBACK $CONFIG_ROOT_NFS dep_tristate 'NFS server support' CONFIG_NFSD $CONFIG_INET dep_mbool ' Provide NFSv3 server support' CONFIG_NFSD_V3 $CONFIG_NFSD diff -NurbP --minimal linux-2.4.22-pre6-fix/init/do_mounts.c linux-2.4.22-pre6-fix-ffb/init/do_mounts.c --- linux-2.4.22-pre6-fix/init/do_mounts.c Wed Jul 9 22:48:48 2003 +++ linux-2.4.22-pre6-fix-ffb/init/do_mounts.c Wed Jul 9 22:49:40 2003 @@ -767,8 +767,10 @@ printk("VFS: Mounted root (nfs filesystem).\n"); return; } +# ifndef CONFIG_NO_FLOPPY_FALLBACK printk(KERN_ERR "VFS: Unable to mount root fs via NFS, trying floppy.\n"); ROOT_DEV = MKDEV(FLOPPY_MAJOR, 0); +# endif } #endif devfs_make_root(root_device_name);