Re: No /dev/root with devtmpfs?

From: H. Peter Anvin
Date: Wed Feb 08 2012 - 12:20:26 EST


On 02/08/2012 08:44 AM, Paul Parsons wrote:
>
> Could you simply use /etc/fstab to identify the root partition?
>

That's not a very good thing, as it is much more likely to be wrong.

It would be a good thing to have the /dev/root symlink *IF* a valid root
device exists (defined as a device node appearing which has the same
device number as reported by stat on the root directory), if nothing
else because we have had one available for a very long time and this is
needless breakage.

Obviously, if such a device doesn't exist (btrfs, NFS, tmpfs) then don't.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/