[systemd-devel] using /dev/root in fstab

Lennart Poettering lennart at poettering.net
Mon Jul 7 03:31:49 PDT 2014


On Mon, 07.07.14 11:14, Samuli Suominen (ssuominen at gentoo.org) wrote:

> 
> 
> On 07/07/14 07:29, microcai wrote:
> >  a long ago, /dev/root is an symblic to real root device. no matter it is on 
> > NFS or HDD, we can use  
> >
> > /dev/root / auto defaults     0 0 
> >
> > in fstab to mount / as readwrite.
> >
> > recently, I recall this old feature, and tryed to use it, but the system 
> > failed to boot, waiting for /dev/root that never come up.
> >
> > how to bring back the good old feature that re-use the root device assigned on 
> > kernel command line ?
> >
> 
> (This is ugly, I know.)
> 
> We restore the /dev/root symlink in Gentoo same way Debian is restoring
> it on non-systemd
> systems that still use sysvinit using a "workaround" like,

I'd encourage you not do this. It's not compatible with btrfs or
anything like that. You shouldn't lead people into believing this would
be a reliable, stable, future-proof API, which in fact it isn't. It's
already broken.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list