FS#38750 - [grub] 10_archlinux fails with F2FS filesystem, impossible to generate a grub config

Attached to Project: Arch Linux
Opened by AnAkkk (AnAkkk) - Friday, 31 January 2014, 19:12 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 02 August 2016, 11:12 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Ronald van Haren (pressh)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
I have recently noticed that grub-mkconfig would fail on my system, it stops while executing 10_archlinux. It was working perfectly fine before.
I have been able to find out where it fails by executing "sudo sh -x /etc/grub.d/10_archlinux". It fails on "ROOT_PART_FS_UUID", which is because this command doesn't work on a F2FS filesystem:

ROOT_PART_FS_UUID="$(${grub_probe} --target="fs_uuid" "/" 2>/dev/null)"

Here's the result of the command in a terminal:
sudo grub-probe --target "fs_uuid" "/"
grub-probe : erreur : système de fichiers inconnu.

(which means in english: "error : unknown file system")

This seem to be perfectly normal, "grub-probe" is not supposed to detect F2FS filesystems (my old grub.cfg works perfectly fine though, it doesn't even reference the F2FS filesystem, just the /boot partition which is ext4, so I doubt it is really needed here).


This is the commit responsible of the problem, which introduces 10_archlinux:
https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/grub&id=a5714e46ac2033a7dc2115fcf55fd3a38c8a7de1


I've attached a patch that fix the issue, it just prevents the script from stopping if grub-probe fails.
This task depends upon

Closed by  Christian Hesse (eworm)
Tuesday, 02 August 2016, 11:12 GMT
Reason for closing:  Upstream
Additional comments about closing:  Fixed in whatever intermediate version.
Comment by AnAkkk (AnAkkk) - Friday, 31 January 2014, 19:21 GMT
Please note that 10_linux works fine, I guess it's because it has the "|| true" I added in my patch that prevents the script from stopping when grub-probe fails.
Comment by Keshav Amburay (the.ridikulus.rat) - Sunday, 09 February 2014, 01:05 GMT
Please test updated 10_archlinux script at http://ix.io/ap6 .
Comment by AnAkkk (AnAkkk) - Sunday, 09 February 2014, 01:08 GMT
That updated one seem to work fine.
Comment by Tobias Powalowski (tpowa) - Tuesday, 25 February 2014, 11:34 GMT
Please try 2.02.beta2-2 package from testing repository.
Comment by Juan Simón (j1simon) - Thursday, 10 March 2016, 14:02 GMT
  • Field changed: Percent Complete (100% → 0%)
Same problem:
update-grub
Generating grub configuration file ...
Found Intel Microcode image
Found linux image: /boot/vmlinuz-linux-ck
Found initrd image: /boot/initramfs-linux-ck.img
Found fallback initramfs image: /boot/initramfs-linux-ck-fallback.img
/usr/bin/grub-probe: error: unknown filesystem.

The f2fs disk isn't a boot disk.
Comment by Christian Hesse (eworm) - Monday, 01 August 2016, 21:06 GMT
Is this issue still valid for grub 1:2.02.beta3-1?
Comment by Juan Simón (j1simon) - Tuesday, 02 August 2016, 11:05 GMT
It works now.

Loading...