Hey everyone,
I’ve been struggling to install nixos the past few days.
First the iso (all the available isos in nix site) won’t work for me, I get errors when trying to mount /dev/root
.
Then I tried installing in place using manual: installing from other distro. Everything worked okay but the last step, in which I need to backup boot and run sudo /nix/var/nix/profiles/system/bin/switch-to-configuration boot
This failed saying doesn’t look like efi partition, First I thought maybe I need to change something in my configuration.nix and set the value of boot to boot/efi. Nope same error:
sudo /nix/var/nix/profiles/system/bin/switch-to-configuration boot
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_ADDRESS = "cs_CZ.UTF-8",
LC_NAME = "cs_CZ.UTF-8",
LC_MONETARY = "cs_CZ.UTF-8",
LC_PAPER = "cs_CZ.UTF-8",
LC_IDENTIFICATION = "cs_CZ.UTF-8",
LC_TELEPHONE = "cs_CZ.UTF-8",
LC_MEASUREMENT = "cs_CZ.UTF-8",
LC_TIME = "cs_CZ.UTF-8",
LC_NUMERIC = "cs_CZ.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
updating GRUB 2 menu...
installing the GRUB 2 EFI boot loader into /boot/efi...
Installing for x86_64-efi platform.
/nix/store/vmhdhnp1k4ra0qkvwy824hsxh549jkqd-grub-2.04/sbin/grub-install: error: /boot/efi doesn't look like an EFI partition.
/nix/store/2izvy01l5hwlscc0glwxzrl2lhc8midc-install-grub.pl: installation of GRUB EFI into /boot/efi failed: No such file or directory
my old boot dir
.
├── efi
│ └── EFI
│ ├── boot
│ ├── Garuda
│ ├── GRUB
│ └── Manjaro
├── grub
│ ├── fonts
│ │ └── unicode.pf2
│ ├── grub-btrfs.cfg
│ ├── grub.cfg
│ ├── grubenv
│ └── themes
│ └── starfield
├── initramfs-linux-lts-fallback.img
├── initramfs-linux-lts.img
├── initramfs-linux-zen-fallback.img
├── initramfs-linux-zen.img
├── intel-ucode.img
├── memtest86+
│ └── memtest.bin
├── vmlinuz-linux-lts
└── vmlinuz-linux-zen
The generate one:
.
├── background.png
├── converted-font.pf2
└── grub
└── grub.cfg
Now what I’m doing wrong and did I miss read the manual in some way?
Current Distro: Arch
boot: UEFI