Add Fedora BTRFS chroot
This commit is contained in:
parent
49332d53ae
commit
8a944a66dc
1 changed files with 32 additions and 0 deletions
|
|
@ -70,6 +70,38 @@ Grub EFI
|
|||
|
||||
([Source](https://docs.fedoraproject.org/en-US/fedora/latest/system-administrators-guide/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader/))
|
||||
|
||||
Chroot depuis Fedora live sur une installation BRTFS
|
||||
|
||||
```
|
||||
liveuser@localhost-live:~$ sudo su
|
||||
mkdir /mnt/sysimage
|
||||
|
||||
# chroot
|
||||
mount -o subvol=root /dev/sda3 /mnt/sysimage/
|
||||
mount /dev/sda2 /mnt/sysimage/boot
|
||||
mount -o umask=0077,shortname=winnt /dev/nvme0n1p1 /mnt/sysimage/boot/efi
|
||||
mount -B /dev /mnt/sysimage/dev
|
||||
mount -B /proc /mnt/sysimage/proc
|
||||
mount -B /sys /mnt/sysimage/sys
|
||||
mount --bind /etc/resolv.conf /mnt/sysimage/etc/resolv.conf
|
||||
chroot /mnt/sysimage
|
||||
# ...
|
||||
# [do you stuff]
|
||||
# ...
|
||||
dnf reinstall shim-* grub2-*
|
||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
exit
|
||||
|
||||
# unchroot
|
||||
umount /mnt/sysimage/dev
|
||||
umount /mnt/sysimage/proc
|
||||
umount /mnt/sysimage/sys
|
||||
umount /mnt/sysimage/boot/efi
|
||||
umount /mnt/sysimage/boot
|
||||
umount /mnt/sysimage/etc/resolv.conf
|
||||
umount /mnt/sysimage
|
||||
```
|
||||
|
||||
# Nix
|
||||
|
||||
Recherche des paquets disponibles (ou [sur le site officiel](https://search.nixos.org/packages))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue