lkml.org 
[lkml]   [2015]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Failover root devices
From
Date
On 17.09.2015 20:28, Drew DeVault wrote:
> I don't think this is a strong argument against this feature. The implementation of this feature
> will be pretty straightfoward - only a small part of the code has to actually change its behavior
> and it can do without changing the interfaces it already relies on. On top of that, I don't think it
> can be done "nicely" in userspace anyway.

I personally think this is opening a can of worms. Now it's just a list of alternative root devices.
But the kernel knows absolutely nothing about these. When is it fine to try an alternative? Why did
the first one not work? Did we just not wait long enough? Or is it a failed RAID device? Or is it an
encrypted disk that needs setup? Or is it on NFS and the network is not available (or we are lacking
driver firmware)?

It could actually introduce security problems: if I know that a device will fallback to an
alternative root (under my control), I can try and DOS the primary root.

In short: if a simple root device doesn't work for you, you should *really* use an initramfs.

One could even argue to remove the boot= parameter altogether and always use initramfs :-)

Ortwin


\
 
 \ /
  Last update: 2015-09-18 17:21    [W:0.201 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site