mirror of
https://git.selfprivacy.org/SelfPrivacy/wiki.selfprivacy.org.git
synced 2025-01-13 18:19:30 +00:00
Add chroot info
This commit is contained in:
parent
b40d2627e3
commit
33a7782340
19
src/nixos/chroot.md
Normal file
19
src/nixos/chroot.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Entering nixos chroot from rescue
|
||||
|
||||
```
|
||||
mount /dev/sda1 /mnt
|
||||
|
||||
mount -o bind /dev /mnt/dev
|
||||
|
||||
mount -o bind /proc /mnt/proc
|
||||
|
||||
mount -o bind /sys /mnt/sys
|
||||
|
||||
chroot /mnt /nix/var/nix/profiles/system/activate
|
||||
|
||||
cp /etc/resolv.conf /mnt/etc/
|
||||
|
||||
chroot /mnt /run/current-system/sw/bin/bash
|
||||
```
|
||||
|
||||
Use `--option sandbox false` when `nixos-rebuild`
|
Loading…
Reference in a new issue