aboutsummaryrefslogtreecommitdiffstats
path: root/zfs/import.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xzfs/import.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/zfs/import.sh b/zfs/import.sh
new file mode 100755
index 0000000..4181aa9
--- /dev/null
+++ b/zfs/import.sh
@@ -0,0 +1,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