aboutsummaryrefslogblamecommitdiffstats
path: root/zfs/import.sh
blob: 3d49e7a785e801b9abd38c95dfcea02c99444e75 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
         








                                  

                                                                   
                          
#!/bin/sh

sudo zpool import -N -R /mnt zroot
sudo zfs load-key -L prompt zroot
sudo zfs mount zroot/ROOT/void
sudo zfs mount zroot/home
mount | grep mnt
sudo mount -t proc proc /mnt/proc
sudo mount -t sysfs sys /mnt/sys
sudo mount -B /dev /mnt/dev
# sudo mount -t devpts pts /mnt/dev/pts
sudo mount -t devpts none /mnt/dev/pts -o ptmxmode=0666,newinstance
sudo chroot /mnt /bin/bash