Re: xfsprogs 4.16.0 format change, GRUB error unknown filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 5/16/18 1:19 AM, Chris Murphy wrote:
On Tue, May 15, 2018 at 1:50 AM, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
On Mon, May 14, 2018 at 11:52:18AM -0600, Chris Murphy wrote:
Is there a reason why this was made default before GRUB was fixed? Or
would XFS devs prefer to not support /boot on XFS?

A bootloader that reads any non-trivial file system (and that includes
XFS for sure) is a bad idea.

What constitutes non-trivial? It seems like this ship sailed a very
long time ago. The Windows bootloader's first job is to teach the
computer how to read NTFS, that's been true for over 20 years. Apple's
done the same with journaled HFS+ and most recently with their switch
to APFS. GRUB and syslinux have read Btrfs for around 8 years.

So yes, if distros would not do that by
default it would help a lot.

Fedora does not do this by default, but it doesn't disallow it. The
problem was discovered with a custom installation where /boot is a
dedicated XFS volume; but it's also reproducible in the likely more
common case where /boot is a directory on an XFS root fs.

Solutions are:
1. Update GRUB to support sparse inodes.
2. If /boot is on XFS, installer uses '-i sparse=0' at mkfs time.
3. Installer proscribes /boot on XFS (for any installation).

Fedora's release criteria requires that the system actually be able to
boot following an installation, so it's not OK to just pancake and let
the poor hapless user go find documentation or a bug report. Option 2
gets a bit complicated to account for the /boot dir on XFS case. GRUB
folks say they will eventually get to it, but have no time now or a
time estimate, so off hand I'd say that's check back in ~6 months.

I'm thinking it'll end up needing to be option 3, in the short term at least.

while y'all were scurrying around hacking up fedora bits, I sent a patch
to fix grub, FWIW.  Hopefully Fedora will pick that up and move on.

-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux