aboutsummaryrefslogtreecommitdiffstats
path: root/zfs
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-06-04 03:59:21 +0000
committerterminaldweller <thabogre@gmail.com>2022-06-04 03:59:21 +0000
commit00312e004f7fa0bfe077708818b030890a1a63d9 (patch)
tree68840cedc0956ea4d7c57177eeb7e4872335fd5f /zfs
parentupdate (diff)
downloadscripts-00312e004f7fa0bfe077708818b030890a1a63d9.tar.gz
scripts-00312e004f7fa0bfe077708818b030890a1a63d9.zip
updates
Diffstat (limited to 'zfs')
-rwxr-xr-xzfs/export.sh3
-rwxr-xr-xzfs/import.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/zfs/export.sh b/zfs/export.sh
index 7110d69..b9b2c18 100755
--- a/zfs/export.sh
+++ b/zfs/export.sh
@@ -1,3 +1,4 @@
-#/bin/sh
+#!/bin/sh
+
sudo umount -n /mnt/{dev/pts,dev,sys,proc}
sudo zpool export zroot
diff --git a/zfs/import.sh b/zfs/import.sh
index 4181aa9..25efb71 100755
--- a/zfs/import.sh
+++ b/zfs/import.sh
@@ -1,4 +1,4 @@
-#/bin/sh
+#!/bin/sh
sudo zpool import -N -R /mnt zroot
sudo zfs load-key -L prompt zroot