Add arch urgent chroot
This commit is contained in:
parent
26c4bfbe4c
commit
6ebc135320
3 changed files with 19 additions and 0 deletions
|
@ -43,3 +43,5 @@
|
|||
- [MongoDB](./ops/tools/mongodb.md)
|
||||
- [OpenSSL](./ops/tools/openssl.md)
|
||||
- [Tmux](./ops/tools/tmux.md)
|
||||
- [misc](./ops/misc/main.md)
|
||||
- [Archlinux Urgent Chroot](./ops/misc/arch-urgent-chroot.md)
|
||||
|
|
16
src/ops/misc/arch-urgent-chroot.md
Normal file
16
src/ops/misc/arch-urgent-chroot.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Archlinux Urgent Chroot
|
||||
|
||||
In case of failure, here is the savior :
|
||||
|
||||
```sh
|
||||
loadkeys fr
|
||||
cryptsetup luksOpen /dev/nvme0n1p5 luks
|
||||
opts=defaults,noatime,nodiratime,ssd,compress=zstd
|
||||
mount -o $opts,subvol=@ /dev/mapper/vg-arch /mnt
|
||||
mount -o $opts,subvol=@/home /dev/mapper/vg-arch /mnt/home
|
||||
mount -o $opts,subvol=@/var /dev/mapper/vg-arch /mnt/var
|
||||
mount -o $opts,subvol=@/var/log /dev/mapper/vg-arch /mnt/var/log
|
||||
mount -o $opts,subvol=@/var/cache/pacman/pkg /dev/mapper/vg-arch /mnt/var/cache/pacman/pkg
|
||||
mount /dev/sdX1 /mnt/boot
|
||||
arch-chroot /mnt
|
||||
```
|
1
src/ops/misc/main.md
Normal file
1
src/ops/misc/main.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Misc
|
Loading…
Reference in a new issue