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










                                     
#!/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 chroot /mnt /bin/bash