Git Product home page Git Product logo

Comments (14)

vlinkz avatar vlinkz commented on May 29, 2024

Relevant section seems to be the end:

installing the boot loader...
setting up /etc...
/etc/tmpfiles.d/journal-nocow.conf:26: Failed to resolve specifier: uninitialized /etc detected, skipping
All rules containing unresolvable specifiers will be skipped.
Initializing machine ID from random generator.
Created "/boot/efi/EFI".
Created "/boot/efi/EFI/systemd".
Created "/boot/efi/EFI/BOOT".
Created "/boot/efi/loader".
Created "/boot/efi/loader/entries".
Created "/boot/efi/EFI/Linux".
Copied "/nix/store/ing1j8p8snkav9bz3i76d0gcv9lz14jl-systemd-251.7/lib/systemd/boot/efi/systemd-bootaa64.efi" to "/boot/efi/EFI/systemd/systemd-bootaa64.efi".
Copied "/nix/store/ing1j8p8snkav9bz3i76d0gcv9lz14jl-systemd-251.7/lib/systemd/boot/efi/systemd-bootaa64.efi" to "/boot/efi/EFI/BOOT/BOOTAA64.EFI".
Random seed file /boot/efi/loader/random-seed successfully written (32 bytes).
Failed to write 'LoaderSystemToken' EFI variable: Read-only file system
Traceback (most recent call last):
  File "/nix/store/n2wzq0a0h0vl2jdiixmfbicjnxxqwb06-systemd-boot", line 315, in <module>
    main()
  File "/nix/store/n2wzq0a0h0vl2jdiixmfbicjnxxqwb06-systemd-boot", line 243, in main
    subprocess.check_call(["/nix/store/ing1j8p8snkav9bz3i76d0gcv9lz14jl-systemd-251.7/bin/bootctl", "--esp-path=/boot/efi"] + flags + ["install"])
  File "/nix/store/fyz2jal0ircpdlplcrn25ki5r826lrdp-python3-3.10.8/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/nix/store/ing1j8p8snkav9bz3i76d0gcv9lz14jl-systemd-251.7/bin/bootctl', '--esp-path=/boot/efi', 'install']' returned non-zero exit status 1.

I don't have an ARM device to test on myself. Maybe @mweinelt or @Thra11 knows something?

from calamares-nixos-extensions.

ahoneybun avatar ahoneybun commented on May 29, 2024

I'm not 100% sure if this is the installer or something else as I haven't been able to get GRUB to install as well but I don't know if it is my configuration or what. If it helps I'll list my own installer and my configuration.nix:

Installer: https://gitlab.com/ahoneybun/nyxi-installer/-/tree/main-pbp
Configuration: https://gitlab.com/ahoneybun/nix-configs/-/blob/main/systems/pbp.nix

from calamares-nixos-extensions.

mweinelt avatar mweinelt commented on May 29, 2024

Failed to write 'LoaderSystemToken' EFI variable: Read-only file system

That likely means EFI vars are not writable. Maybe try boot.loader.efi.canTouchEfiVariables = false;.

from calamares-nixos-extensions.

ahoneybun avatar ahoneybun commented on May 29, 2024

At least for my setup that doesn't allow GRUB to install though that might be a different issue altogether. It tries to update GRUB 2 menu but then gives me this:

Die at /nix/store/...-install-grub.pl line 608

So I think it might be a different issue.

from calamares-nixos-extensions.

mweinelt avatar mweinelt commented on May 29, 2024

How does your partitioning look like? Do you have an EF00 partition?

from calamares-nixos-extensions.

ahoneybun avatar ahoneybun commented on May 29, 2024

How do I check that? I did make the boot partition FAT32 and marked it as an ESP partition.

from calamares-nixos-extensions.

mweinelt avatar mweinelt commented on May 29, 2024

That doesn't sound wrong. A command to print the partition table would be parted /dev/sdX print.

from calamares-nixos-extensions.

ahoneybun avatar ahoneybun commented on May 29, 2024

So parted isn't included in my install and I can't finish due to the issue with GRUB. This is how I partitioned it:

(
echo g # Create new GPT partition table
echo n # Create new partition (for EFI).
echo # Set default partition number.
echo # Set default first sector.
echo +1G # Set +1G as last sector.
echo n # Create new partition (for root).
echo # Set default partition number.
echo # Set default first sector.
echo # Set default last sector (rest of the disk).
echo t # Change partition type.
echo 1 # Pick first partition.
echo 1 # Change first partition to EFI system.
echo w # write changes.
) | sudo fdisk $driveName -w always -W always

from calamares-nixos-extensions.

Thra11 avatar Thra11 commented on May 29, 2024

I've not tried calamares yet and I have minimal experience with EFI boot. @samueldr might have some ideas.

from calamares-nixos-extensions.

samueldr avatar samueldr commented on May 29, 2024

Haven't tried calamares, but following the standard UEFI install instructions from before calamares, and ensuring efivars aren't involved (notes in the UEFI section from the NixOS on ARM wiki section) should work.

I am using NixOS installed from the UEFI USB iso from around early 2021. I am using GRUB, with the suggested config from that previously and currently linked section.

from calamares-nixos-extensions.

ahoneybun avatar ahoneybun commented on May 29, 2024

So I was able to get my own installer to work (I see GRUB) but then it black screens, do you I still need your configuration and overlay @samueldr ?

from calamares-nixos-extensions.

samueldr avatar samueldr commented on May 29, 2024

In all cases, you might prefer using the latest kernel.

If you have LUKS enabled, you will need the appropriate drivers in stage-1 for the display. (Like on every system, but most are detected for you already).

So you don't need the whole shebang, just enough for it. This is more than enough most likely, and if you have some time to go through a lot of reboot cycles, can probably trim it down some:

If you don't have LUKS enabled, it should be able to go to stage-2 and thus load modules implicitly. So if it doesn't I don't really know what to say.

from calamares-nixos-extensions.

samueldr avatar samueldr commented on May 29, 2024

Oh, right, there is one caveat: if there is no console on the kernel cmdline, it's also plausible it's using serial out.

from calamares-nixos-extensions.

ahoneybun avatar ahoneybun commented on May 29, 2024

Looks like it doesn't like this layout:

https://gitlab.com/ahoneybun/nix-configs/-/blob/main/systems/pbp.nix

It's failing to built the init from the looks of it:

error: unable to make '/' private: Invalid argument

That error is right after trying to copy the path for the 6.0.11 kernel but it also happens with the default kernel.

from calamares-nixos-extensions.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.