Home_greyopenFATE - openSUSE feature tracking > #302411
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Always mount root-fs under /dev/root

Feature state

Rejected Information
Rejected Information
Rejected Information


The root filesystem should always be mounted at /dev/root, which in turn is a symlink to the actual device node. This way we don't have to edit /etc/fstab if the root device is named differently (ie for automatic booting from degraded mirrors etc).

And it would help with having always a consistent /etc/fstab, as /dev/root will be always present.

Documentation impact



icons/user_comment.png I. K. wrote: (11 years ago)

Effort/risk in YaST / bootloader?

icons/user_comment.png S. K. wrote: (11 years ago)

who do you ask?

icons/user_comment.png J. P. wrote: (10 years ago)

In principle having a symbolic link for a root device does not make a problem.
But _changing_ the symlink might make the current bootloader configuration inconsistent.
E.g. Having root=/dev/root in the bootloader config and pointing to /dev/md0 (mirror) hints
to duplicate the boot code to two disks, changing the symlink to point to a single disk
changed the semantics of the config.

So the risk is that by changing the symlink and doing a kernel update one might invalidate
the boot configuration resulting in a possible unbootable system.

icons/user_comment.png M. E. wrote: (10 years ago)

I understand the risk, but the feature itself sounds useful enough. Part of bootloader discussion. Not mandatory for now.

icons/user_comment.png S. V. wrote: (10 years ago)

Jiri, please, take a look.

icons/user_comment.png J. S. wrote: (9 years ago)

For GRUB configuration itself, the root= kernel parameter can be omited completly for standard installations (since initrd handles mounting root itself). I hope that just modifying the partitioner to write fstab should be sufficient in basic cased.

However, since YaST needs to know which real device /dev/root is, it needs to exist during installation and be set properly (according to the target system). Probably just creating the symlink manually during installation after mounting the disk and writing fstab is sufficient?

icons/user_comment.png S. K. wrote: (9 years ago)

yast already handles /dev/root (checked with arvin) and the bootloader and /etc/fstab should not be touched. Just the initrd needs mount differently.

icons/user_comment.png A. S. wrote: (9 years ago)

YaST needs modification when /etc/fstab should contain /dev/root as the device for root-fs (as the description says).
After all YaST writes /etc/fstab during installation.

icons/user_comment.png J. S. wrote: (9 years ago)

Arvin, please, remember to ensure that the symlink itself also exists even during installation/upgrade.

Last change: 9 years ago
Loading tags...
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint