Comments (14)
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.
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.
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.
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.
How does your partitioning look like? Do you have an EF00
partition?
from calamares-nixos-extensions.
How do I check that? I did make the boot partition FAT32 and marked it as an ESP partition.
from calamares-nixos-extensions.
That doesn't sound wrong. A command to print the partition table would be parted /dev/sdX print
.
from calamares-nixos-extensions.
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.
I've not tried calamares yet and I have minimal experience with EFI boot. @samueldr might have some ideas.
from calamares-nixos-extensions.
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.
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.
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.
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.
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)
- Prevent breaking when modules aren't used
- Add more connectivity check URLs in case geoip.kde.org goes down HOT 4
- Calamares doesn't create a proper BTRFS installation (no subvolumes) HOT 1
- Make it easy to generate an ISO with default NixOS configuration HOT 2
- didn't automatically add nvidia driver
- don't require special `boot.loader.efi.efiSysMountPoint` HOT 1
- Add support for choosing desktop environments and other options HOT 1
- Configure cryptsetup to use LUKS2 HOT 4
- Wi-Fi connection requires installer restart HOT 1
- Encrypted swap is broken
- Firefox is added as `pkgs.firefox` for Plasma install, instead of `programs.firefox.enable`
- geoip support HOT 1
- Delete unrelated 1.x.x tags to fix updater HOT 1
- Clarify LICENSEs HOT 2
- internetCheckUrl: http://google.com HOT 1
- Code leftovers in a comment in the generated NixOS config HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calamares-nixos-extensions.