Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 May 2021 10:18:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 256024] [zfs] `zpool upgrade' doesn't warn about updating bootloader anymore
Message-ID:  <bug-256024-3630-2w4pxLZ0i1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-256024-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-256024-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256024

Ronald Klop <ronald-lists@klop.ws> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ronald-lists@klop.ws

--- Comment #11 from Ronald Klop <ronald-lists@klop.ws> ---
My upgrade script does something like this: (pseudocode for brevity)

PART=3D/dev/ada0p1
BOOTFILE=3D/boot/gptzfsboot
FILESIZE=3D$( stat -f "%z" $BOOTFILE )

CURBOOT_MD5=3D`head -c $FILESIZE $PART | md5 -q /dev/stdin`
NEWBOOT_MD5=3D`md5 -q $BOOTFILE`
if CURBOOT_MD5 !=3D NEWBOOT_MD5; then
    echo "Upgrade your bootblocks."
    echo "gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 $PART"
fi

This can probably made more general. Just my 2 cents.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256024-3630-2w4pxLZ0i1>