add promt env

This commit is contained in:
Michel Le Cocq 2020-09-23 16:21:37 +02:00
parent bf20d38575
commit dac2cb310b

View File

@ -15,11 +15,11 @@ Steps summary:
### Verify Debian Live was loaded with UEFI : ### Verify Debian Live was loaded with UEFI :
~~~ ~~~
$ dmesg | grep -i efi from live $ dmesg | grep -i efi
~~~ ~~~
~~~ ~~~
$ ls -l /sys/firmware/efi | grep vars from live $ ls -l /sys/firmware/efi | grep vars
~~~ ~~~
### Mount broken system (via chroot) ### Mount broken system (via chroot)
@ -32,17 +32,18 @@ You have to add *-f* to force import because zfs think he should be on an other
*-R* is to use an altroot path. *-R* is to use an altroot path.
~~~ ~~~
zpool import -f -R /mnt rpool from live $ sudo su
from live # zpool import -f -R /mnt rpool
~~~ ~~~
~~~ ~~~
zpool import bpool from live # zpool import bpool
~~~ ~~~
Here system will tell you he can't mount it because /boot is in use. We don't wanted to mount it here, we will do it inside the chroot. Here system will tell you he can't mount it because /boot is in use. We don't wanted to mount it here, we will do it inside the chroot.
~~~ ~~~
zfs mount rpool/ROOT/ubuntu_myid from live # zfs mount rpool/ROOT/ubuntu_myid
~~~ ~~~
I'm in the case where ny zpool is encrypt ! I'm in the case where ny zpool is encrypt !
@ -53,20 +54,20 @@ see : [zfs trouble encrypt zpool](zfs-trouble-live-boot-solution)
Mount root partition (for example an lvm) Mount root partition (for example an lvm)
~~~ ~~~
# mount /dev/volumegroup/logicalvolume /mnt from live # mount /dev/volumegroup/logicalvolume /mnt
~~~ ~~~
Mount boot partition (F.e. in drive sda) Mount boot partition (F.e. in drive sda)
~~~ ~~~
# mount /dev/sda2 /mnt/boot from live # mount /dev/sda2 /mnt/boot
~~~ ~~~
Mount the EFI System Partition (usually in /dev/sda1) Mount the EFI System Partition (usually in /dev/sda1)
~~~ ~~~
# mount /dev/sda1 /mnt/boot/efi from live # mount /dev/sda1 /mnt/boot/efi
~~~ ~~~
### Prepare chroot env ### Prepare chroot env
@ -74,19 +75,19 @@ Mount the EFI System Partition (usually in /dev/sda1)
Mount the critical virtual filesystems with the following single command: Mount the critical virtual filesystems with the following single command:
~~~ ~~~
# for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done from live # for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
~~~ ~~~
Mount all zfs file system on rpool. Mount all zfs file system on rpool.
~~~ ~~~
# zfs mount -a from live # zfs mount -a
~~~ ~~~
Chroot to your normal (and broken) system device Chroot to your normal (and broken) system device
~~~ ~~~
# chroot /mnt from live # chroot /mnt
~~~ ~~~
Then here mon bpool zfs vol. Then here mon bpool zfs vol.