Closed vunnyso closed 1 month ago
Lenovo-X1 debug image gets stuck at boot, same problem that Samuli first noticed here. I built the pr with nix build github:vunnyso/ghaf/vs-sbfix#lenovo-x1-carbon-gen11-debug
and booted from external SSD.
Issue is seen with mainline ghaf commit c7eab7f995cf841104f26db62222b862b5915c79 as well.
Issue is seen with mainline ghaf commit c7eab7f as well.
We confirmed that the issue is caused by mainline. It did not happen the first two times I tried, but both me and Samuli have now seen it in main too. https://github.com/tiiuae/ghaf/pull/703#issuecomment-2268312667
Looks like some issue with zfs pool selection during system boot, I have tried to import zfspool
manually but somehow system boot cannot continue.
The root cause of the issue with ZFS pool is that ZFS keeps its metadata in the beginning and in the end of the storage device. When the media device is reflashed, this metadata does not match anymore. I made a PR with the flashing script that correctly wipes the target device before reflashing the image. https://github.com/tiiuae/ghaf/pull/713
The root cause of the issue with ZFS pool is that ZFS keeps its metadata in the beginning and in the end of the storage device. When the media device is reflashed, this metadata does not match anymore. I made a PR with the flashing script that correctly wipes the target device before reflashing the image. #713
Thanks @unbel13ver
Tested on Lenovo-X1
Description of changes
Checklist for things done
x86_64
aarch64
riscv64
nix flake check --accept-flake-config
and it passesTesting
1) To test secure boot working change here
host-hardening.enable = true;
2) You may need to flash image as some of lanzaboote file may not install withnixos-rebuild ... switch
3) Enable secure boot from BIOS. 4) Enroll keyssudo sbctl enroll-keys --microsoft
and reboot 5) Run below command to verify functionality