From: Arnd Bergmann Subject: Re: [PATCH 04/14] Pramfs: Mounting as root filesystem Date: Sun, 14 Jun 2009 01:04:42 +0200 Message-ID: <200906140104.43463.arnd@arndb.de> References: <4A33A7D7.3040008@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A33A7D7.3040008@gmail.com> Sender: linux-embedded-owner@vger.kernel.org List-ID: Content-Type: Text/Plain; charset="us-ascii" To: Marco Cc: Linux FS Devel , Linux Embedded , Linux Kernel , Daniel Walker On Saturday 13 June 2009, Marco wrote: > void __init mount_root(void) > { > +#ifdef CONFIG_ROOT_PRAMFS > + if (MAJOR(ROOT_DEV) == MEM_MAJOR) { > + if (mount_pramfs_root()) > + return; > + > + printk(KERN_ERR "VFS: Unable to mount root fs via PRAMFS, trying floppy.\n"); > + ROOT_DEV = Root_FD0; > + } > +#endif AFAICT, this will prevent booting from /dev/ram0 with a regular file system, because that also uses MAJOR(ROOT_DEV) == 1. Arnd <><