10_linux: avoid multi-device root= kernel argument
authorAndrei Borzenkov <arvidjaar@gmail.com>
Mon, 1 Feb 2016 17:13:48 +0000 (20:13 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Mon, 1 Feb 2016 17:13:48 +0000 (20:13 +0300)
commit7290bb5623cd8d9b50b756d0ea40eb6a269985e7
treecf19f77d71da27b9e27bb665585544eef0a14dfc
parentff84a9b868ea36da23248da780b8e85bdc4c183d
10_linux: avoid multi-device root= kernel argument

If root filesystem is multidev btrfs, do not attempt to pass all devices as
kernel root= argument. This results in splitting command line in GRUB due to
embedded newline and even if we managed to quote it, kernel does not know how
to interpret it anyway. Multidev btrfs requires user space device scanning,
so passing single device would not work too.

This still respects user settings GRUB_DISABLE_LINUX_UUID. Not sure what we
should do in this case.

Closes: 45709
util/grub.d/10_linux.in
util/grub.d/20_linux_xen.in