Bootloader: Difference between revisions

imported>Balsoft
Add tutorial on installing 64-bit system with 32-bit UEFI bootloader.
imported>LinArcX
clarification about how to bind system virtual file systems.
Line 59: Line 59:
mount /dev/[root partition] /mnt
mount /dev/[root partition] /mnt
mount /dev/[boot partition] /mnt/boot
mount /dev/[boot partition] /mnt/boot
</syntaxhighlight>
Create a file called foo.sh and paste these lines into it:
<syntaxhighlight lang="bash">
for i in dev proc sys; do mount --rbind /$i /mnt/$i; done
for i in dev proc sys; do mount --rbind /$i /mnt/$i; done
NIXOS_INSTALL_BOOTLOADER=1 chroot /mnt \
NIXOS_INSTALL_BOOTLOADER=1 chroot /mnt \
     /nix/var/nix/profiles/system/bin/switch-to-configuration boot
     /nix/var/nix/profiles/system/bin/switch-to-configuration boot
</syntaxhighlight>
</syntaxhighlight>
Make it executable with chmod and then run it.
Tip: Be patient, it may take some times to re-install the bootloader for you.


=== New generations are not in the boot menu ===
=== New generations are not in the boot menu ===