Bug 240942 - FreeBSD loader - failed to read pad2 area or primary vdev
Summary: FreeBSD loader - failed to read pad2 area or primary vdev
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-30 15:45 UTC by vermaden
Modified: 2020-10-28 19:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vermaden 2019-09-30 15:45:37 UTC
FreeBSD 12.1-BETA2 installed this way (ZFS+GELI):
https://vermaden.wordpress.com/2018/11/20/freebsd-desktop-part-2-1-install-freebsd-12/

After typing in the GELI password the message appears on screen and boot process continues.

Details on the attached photo.

Regards.
Comment 1 vermaden 2019-10-14 13:05:14 UTC
Shouldn't this be added to this?
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240700
Comment 2 vermaden 2020-01-19 05:01:51 UTC
Its here:

/usr/src/stand/i386/zfsboot/zfsboot.c-           *cmd = 0;
/usr/src/stand/i386/zfsboot/zfsboot.c-       }
/usr/src/stand/i386/zfsboot/zfsboot.c-    } else
/usr/src/stand/i386/zfsboot/zfsboot.c: printf("failed to read pad2 area of primary vdev\n");
/usr/src/stand/i386/zfsboot/zfsboot.c-
/usr/src/stand/i386/zfsboot/zfsboot.c-    /* Mount ZFS only if it's not already mounted via nextboot parsing. */
/usr/src/stand/i386/zfsboot/zfsboot.c-    if (zfsmount.spa == NULL &&

Can we remove that harmless/pointless message?

Its displayed everytime system boots yet it does not provide anything - system boots properly.

Regards.
Comment 3 vermaden 2020-01-20 10:11:39 UTC
Proposed path :p

% diff -u /usr/src/stand/i386/zfsboot/zfsboot.c zfsboot.c.NEW 
--- /usr/src/stand/i386/zfsboot/zfsboot.c       2019-09-26 17:23:34.257318000 +0200
+++ zfsboot.c.NEW       2020-01-20 11:11:15.258845000 +0100
@@ -823,8 +823,6 @@
            /* Do not process this command twice */
            *cmd = 0;
        }
-    } else
-       printf("failed to read pad2 area of primary vdev\n");
 
     /* Mount ZFS only if it's not already mounted via nextboot parsing. */
     if (zfsmount.spa == NULL &&
Comment 4 Mason Loring Bliss freebsd_triage 2020-08-22 16:43:21 UTC
Just found some discussion of this here:

https://groups.google.com/forum/#!msg/muc.lists.freebsd.fs/ODWeQuoUsC0/9foIQjbNEAAJ