Bug 31923 - installing to F2FS file system
Summary: installing to F2FS file system
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Martin Whitaker
QA Contact:
URL:
Whiteboard:
Keywords: IN_ERRATA9
Depends on:
Blocks:
 
Reported: 2023-05-14 17:16 CEST by Edward
Modified: 2023-07-07 21:51 CEST (History)
2 users (show)

See Also:
Source RPM: grub2-2.06-26.mga9
CVE:
Status comment:


Attachments

Description Edward 2023-05-14 17:16:05 CEST
The "draklive-install" program crashed. Drakbug-18.56 caught it.

Installing Mageia from downloaded Plasma image. Attemoted to install to external SSD using f2fs file system (for flash storage).

grub2-install failed: Installing for i386-pc platform.
grub2-install: error: ../grub-core/kern/fs.c:121:unknown filesystem.
	...propagated at /usr/lib/libDrakX/any.pm line 278.
Perl's trace:
drakbug::bug_handler() called from /usr/lib/libDrakX/any.pm:278
any::installBootloader() called from /usr/sbin/draklive-install:426
main::setup_bootloader() called from /usr/sbin/draklive-install:124
main::install_live() called from /usr/sbin/draklive-install:87

Theme name: Adwaita
Kernel version = 6.1.11-desktop-3.mga9
Distribution=Mageia release 9 (Cauldron) for x86_64
CPU=AMD Athlon(tm) II X2 260 Processor
Comment 1 Lewis Smith 2023-05-14 20:48:50 CEST
Do you think this is due to the unusual f2fs destination file system?
Was the SSD already partitioned & formatted, or did the Installer do all that?
Does it work if you use a more common filesystem like FAT32?

Await some feedback before assigning this.

Summary: draklive-install crashed => draklive-install crashed Attemting to install to external SSD using f2fs file system
CC: (none) => lewyssmith, mageia, mageiatools

Comment 2 Edward 2023-05-14 21:05:51 CEST
Very possible. Attempts were made to install it to what is recognized by the separate boot menu (not shown on the BIOS screen) as General USB Flash Disk. Read that f2fs is for devices using flash storage, so I thought I would try it out.

Subsequently attempted to install it using the defaults (file system unknown). That, installed, however, during the first upgrade after the first boot into the new system, urpmi wanted to remove the newly-installed but somehow *not* listed on the Grub menu 6.3.2-3 kernel and remove 6.3.2-2. which was the kernel that it booted into. So I reformatted the disk and didn't try again.
Comment 3 Edward 2023-05-14 21:14:17 CEST
The image downloaded, was the Mageia 9 Beta 1 Plasma image.
Comment 4 Martin Whitaker 2023-05-14 22:34:47 CEST
Looks to be this bug in GRUB:

https://lists.gnu.org/archive/html/grub-devel/2022-12/msg00041.html
Comment 5 Lewis Smith 2023-05-16 11:33:12 CEST
Brilliant!
The thread is long. I think these are the main bits:

 https://lists.gnu.org/archive/html/grub-devel/2022-12/msg00041.html
gives two possible patches; the first, small, seems to be 'the one'.

 https://lists.gnu.org/archive/html/grub-devel/2022-12/msg00103.html
confirms it, on the back of:
 https://bugs.archlinux.org/task/76168#comment213505

All these date from late 2022 & refer to Grub 2.06; the correction should be in later versions.
I am puzzled that our own is grub-0.97.

Assigning to Giuseppe since he recently patched Grub for something else.

Summary: draklive-install crashed Attemting to install to external SSD using f2fs file system => draklive-install crashed Attemting to install to f2fs file system
Keywords: (none) => FOR_ERRATA9
CC: lewyssmith, mageiatools => (none)
Assignee: bugsquad => ghibomgx

Comment 6 Martin Whitaker 2023-05-17 12:04:21 CEST
(In reply to Lewis Smith from comment #5)
> All these date from late 2022 & refer to Grub 2.06; the correction should be
> in later versions.
> I am puzzled that our own is grub-0.97.

Mageia packages GRUB as grub2. The grub package was retained to allow users to delay transitioning from the legacy version of GRUB.

I've added the patch to our grub2 package, so this bug should be fixed with grub2-2.06-27.mga9. However, when testing it locally, I encountered a second, unrelated bug when booting from a f2fs filesystem, which is described in https://bugs.archlinux.org/task/77596. The workaround that worked for me was to add "rootflags=noflush_merge" on the boot command line.

Assignee: ghibomgx => mageia
Source RPM: draklive-install-2.31-1.mga9 => grub2-2.06-26.mga9

Comment 7 Morgan Leijström 2023-07-07 21:51:56 CEST
Entered in https://wiki.mageia.org/en/Mageia_9_Errata#System

"
'''F2FS as root filesystem''' need "rootflags=noflush_merge" on the boot command line, info in {{Bug|31923#c6}}.
 "

Keywords: FOR_ERRATA9 => IN_ERRATA9
Summary: draklive-install crashed Attemting to install to f2fs file system => installing to F2FS file system
CC: (none) => fri


Note You need to log in before you can comment on or make changes to this bug.