Open allentiak opened 4 years ago
@ericbsd Is there anything I could help you with so this bug get triaged faster?
To be honest with that problem I am not even sure were to start.
@ericbsd Whereas I have no clue about BSD internals, I have an idea that might work...
The first thing to discover is whether this alteration is performed at boot time or at poweroff time. I can help you with this (see below). Once we know that for sure, I could help you analyzing GhostBSD's scripts to discover where the bug is.
As I have said earlier on, I already have a dual boot scenario with Debian working. I could simply try updating it to GhostBSD's latest version (20.08.04, AFAIK).
In order to know whether this is a boot or poweroff time bug, I could try forcefully shutting my system down, and rebooting it later on. If the problem persists, the bug is in GhostBSD's init scripts. Otherwise, it's in the poweroff scripts. In any case, you should lead the analysis. (I am happy to help you with this, but remember I have zero knowledge about FreeBSD/GhostBSD's internals - so I will need guidance on this.)
@ericbsd What do you think about this?
I know this Is for MBR, but is GPT still corrupted?
issue moved from ghostbsd/ghostbsd-src to ghostbsd/issues
Summary
I am trying to dual boot GhostBSD with Debian. After a successful GhostBSD 20.04.1 install (on a ZFS partition), every time I boot into GhostBSD, it corrupts the protective MBR of my hard drive.
I have verified this bug in GhostBSD graphical installation on a partition (both with rEFInd boot manager and FreeBSD UEFI loader). I haven't been able to reproduce this bug on FreeBSD.
When I say "successful GhostBSD install", I mean that, after installing GhostBSD, both rEFInd and FreeBSD UEFI loader work perfectly... as long as I don't choose GhostBSD.
I have been dealing with this bug (in a way or another) since the times TrueOS was desktop-oriented... First, the OS corrupted the GPT partition table (see https://github.com/trueos/trueos-core/issues/1541); now it corrupts the protective MBR...
I found a workaround that restores my protective MBR, but if I boot into GhostBSD, the bug triggers again.
Here are the
pc-sysinstall
installation logs:Due to https://github.com/ghostbsd/gbi/issues/26, I cannot confirm whether this bug belongs to
gbi
orpc-sysinstall
.My system
Partition layout
EFI partition content (as seen from Debian)
For reproducibility reasons, I always delete the folders GhostBSD adds to my EFI partition before reinstalling it. This is,
# rm -rf /boot/efi/EFI/{ghostbsd,BOOT}
.Partition layout (once the bug is triggered)
Workaround