Installing from Linux: Difference between revisions
imported>Ndt m quote "${fn}" in bind mounts to properly handle spaces in directories & other edge cases |
imported>Chuangzhu chroot works well on some systems |
||
| Line 62: | Line 62: | ||
Now we are able to chroot into the NixOS system used for installation. ''You may get several warnings and errors, but you can safely ignore them unless they are fatal.'' If you're installing from Arch, you may need to remove the mount call that tries to make / private in the same init script. | Now we are able to chroot into the NixOS system used for installation. ''You may get several warnings and errors, but you can safely ignore them unless they are fatal.'' If you're installing from Arch, you may need to remove the mount call that tries to make / private in the same init script. | ||
Using chroot: | |||
<syntaxhighlight lang="console"> | |||
# chroot . /$INIT | |||
</syntaxhighlight> | |||
Using pivot_root: | |||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# mkdir old_root | # mkdir old_root | ||