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
Opened by AnAkkk (AnAkkk) - Friday, 31 January 2014, 19:12 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 02 August 2016, 11:12 GMT
|
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.
Tuesday, 02 August 2016, 11:12 GMT
Reason for closing: Upstream
Additional comments about closing: Fixed in whatever intermediate version.
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.