change promt

Michel Le Cocq 2020-09-23 16:24:27 +02:00
parent dac2cb310b
commit 145096fcda

@ -15,11 +15,11 @@ Steps summary:
### Verify Debian Live was loaded with UEFI : ### Verify Debian Live was loaded with UEFI :
~~~ ~~~
from live $ dmesg | grep -i efi FromLive $ dmesg | grep -i efi
~~~ ~~~
~~~ ~~~
from live $ ls -l /sys/firmware/efi | grep vars FromLive $ ls -l /sys/firmware/efi | grep vars
~~~ ~~~
### Mount broken system (via chroot) ### Mount broken system (via chroot)
@ -32,18 +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.
~~~ ~~~
from live $ sudo su FromLive $ sudo su
from live # zpool import -f -R /mnt rpool FromLive # zpool import -f -R /mnt rpool
~~~ ~~~
~~~ ~~~
from live # zpool import bpool FromLive # 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.
~~~ ~~~
from live # zfs mount rpool/ROOT/ubuntu_myid FromLive # 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 !
@ -55,19 +55,19 @@ see : [zfs trouble encrypt zpool](zfs-trouble-live-boot-solution)
Mount root partition (for example an lvm) Mount root partition (for example an lvm)
~~~ ~~~
from live # mount /dev/volumegroup/logicalvolume /mnt FromLive # mount /dev/volumegroup/logicalvolume /mnt
~~~ ~~~
Mount boot partition (F.e. in drive sda) Mount boot partition (F.e. in drive sda)
~~~ ~~~
from live # mount /dev/sda2 /mnt/boot FromLive # mount /dev/sda2 /mnt/boot
~~~ ~~~
Mount the EFI System Partition (usually in /dev/sda1) Mount the EFI System Partition (usually in /dev/sda1)
~~~ ~~~
from live # mount /dev/sda1 /mnt/boot/efi FromLive # mount /dev/sda1 /mnt/boot/efi
~~~ ~~~
### Prepare chroot env ### Prepare chroot env
@ -75,31 +75,31 @@ from live # mount /dev/sda1 /mnt/boot/efi
Mount the critical virtual filesystems with the following single command: Mount the critical virtual filesystems with the following single command:
~~~ ~~~
from live # for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done FromLive # 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.
~~~ ~~~
from live # zfs mount -a FromLive # zfs mount -a
~~~ ~~~
Chroot to your normal (and broken) system device Chroot to your normal (and broken) system device
~~~ ~~~
from live # chroot /mnt FromLive # chroot /mnt
~~~ ~~~
Then here mon bpool zfs vol. Then here mon bpool zfs vol.
~~~ ~~~
inside chroot # zfs mount -a InsideChroot # zfs mount -a
~~~ ~~~
Mount your EFI partition: Mount your EFI partition:
~~~ ~~~
inside chroot # mount -a InsideChroot # mount -a
~~~ ~~~
You should see : You should see :
@ -109,7 +109,7 @@ You should see :
* Your efi partition. * Your efi partition.
~~~ ~~~
inside chroot # df -h InsideChroot # df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
udev 16G 0 16G 0% /dev udev 16G 0 16G 0% /dev
tmpfs 3,2G 1,8M 3,2G 1% /run tmpfs 3,2G 1,8M 3,2G 1% /run
@ -137,13 +137,13 @@ rpool/ROOT/ubuntu_19k4ww/var/lib/dpkg 269G 41M 269G 1% /var/
### Reinstall grub-efi ### Reinstall grub-efi
~~~ ~~~
inside chroot # apt-get install --reinstall grub-efi InsideChroot # apt-get install --reinstall grub-efi
~~~ ~~~
~~~ ~~~
inside chroot # grub-install /dev/sda InsideChroot # grub-install /dev/sda
~~~ ~~~
~~~ ~~~
inside chroot # update-grub InsideChroot # update-grub
~~~ ~~~