Bug 281589 - FreeBSD 13.4 bootloader rev 3.0 fails to load kernel with mfsbsd-created image
Summary: FreeBSD 13.4 bootloader rev 3.0 fails to load kernel with mfsbsd-created image
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.4-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-19 14:13 UTC by karthigeyanh
Modified: 2024-11-02 22:00 UTC (History)
2 users (show)

See Also:


Attachments
Failed to load kerel (2.49 KB, image/png)
2024-09-19 14:13 UTC, karthigeyanh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description karthigeyanh 2024-09-19 14:13:29 UTC
Created attachment 253664 [details]
Failed to load kerel

Overview:  FreeBSD 13.4 bootloader rev 3.0 fails with mfsbsd-created image
Steps to Reproduce: 
        - Create a mfbsd image with FreeBSD13.4 ISO with either master or 2.3 branch of mfbsd
        - Load it via pxe

Brief note on the issue.

When I attempted to create an image with mfsbsd and install it on a KVM VM, the bootloader failed to load the kernel. However, when using bootloader revision 1.0 with the same image, both the kernel and mfsroot loaded into memory successfully. After several attempts, I  created the mfsbsd image with the kernel and mfsroot in an uncompressed format (instead of .gz) resolved the issue. Iā€™m uncertain whether the bootstrap loader has stopped supporting or decompressing .gz files.

Thanks!!
Comment 1 Ed Maste freebsd_committer freebsd_triage 2024-09-19 20:10:22 UTC
The BIOS loader no longer includes gzip support as of 35d217ae021cbbde1e7e02dd7a8534235be5741a (in stable/13)

Unfortunately it appears this information did not make it into the release notes for 13.4.
Comment 2 karthigeyanh 2024-09-20 03:42:12 UTC
Thanks for confirming it ED Maste!!


Can I simply change the LOADER_GZIP_SUPPORT setting to enabled in the file below, or do I need to make changes elsewhere as well to , so that i can make ISO out of it.

a/stand/i386/loader/Makefile b/stand/i386/loader/Makefile
Comment 3 Warner Losh freebsd_committer freebsd_triage 2024-11-02 22:00:21 UTC
(In reply to karthigeyanh from comment #2)
Yes. You can just add that.

It also works if you add LOADER_GZIP_SUPPORT=yes in your /etc/make.conf file, but it's global to all loaders.

This was a mistake on my part in 13.4 (and I think 14.1). 14.2 has this fixed (we use the text mode loader instead of the graphics mode loader for BIOS).

I've merged the change the sense of this stuff to stable/13 as well (I believe, if not, I'll do it shortly).

I'm closing this since it's been fixed in a newer version.