You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The device tree support introduced in #319422 has an issue where the name of the device tree file copied to the ESP has the same name for all generations, making all generations boot with the device tree corresponding to the oldest one.
Steps To Reproduce
Set hardware.deviceTree.enable = true and hardware.deviceTree.name = "qcom/x1e80100-lenovo-yoga-slim7x.dtb".
Update your kernel, which also brings with it an updated device tree.
Observe that all device trees are attempted to be written to $ESP/EFI/nixos/qcom-x1e80100-lenovo-yoga-slim7x.dtb.efi. If this file already exists it will not be overwritten, making all generations boot with the oldest device tree.
Expected behavior
Each generation boots with the device tree specified in its bootspec.
Additional context
This is an issue with the copy_from_file function:
This function assumes that file is contained in the root of a store directory, and computes store_dir as the parent of file. In my case, store_dir gets set to qcom, and so the resulting filename will be qcom-x1e80100-lenovo-yoga-slim7x.dtb.efi.
Describe the bug
The device tree support introduced in #319422 has an issue where the name of the device tree file copied to the ESP has the same name for all generations, making all generations boot with the device tree corresponding to the oldest one.
Steps To Reproduce
hardware.deviceTree.enable = true
andhardware.deviceTree.name = "qcom/x1e80100-lenovo-yoga-slim7x.dtb"
.$ESP/EFI/nixos/qcom-x1e80100-lenovo-yoga-slim7x.dtb.efi
. If this file already exists it will not be overwritten, making all generations boot with the oldest device tree.Expected behavior
Each generation boots with the device tree specified in its bootspec.
Additional context
This is an issue with the
copy_from_file
function:This function assumes that
file
is contained in the root of a store directory, and computesstore_dir
as the parent offile
. In my case,store_dir
gets set toqcom
, and so the resulting filename will beqcom-x1e80100-lenovo-yoga-slim7x.dtb.efi
.Notify maintainers
@jmbaur
@colemickens you also might be interested
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: