mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-02 04:56:14 +01:00
19 lines
415 B
Plaintext
19 lines
415 B
Plaintext
|
# -*- mode: shell-script -*-
|
||
|
|
||
|
source @out@/share/functions/get_old_datasets
|
||
|
|
||
|
export "PATH=$PATH:@runtimePath@"
|
||
|
|
||
|
if [[ "$#" != 2 ]] ; then
|
||
|
echo "This script requires precisely 2 arguments!"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
dataset="$1"
|
||
|
mountpoint="$2"
|
||
|
|
||
|
while IFS="\n" read gen
|
||
|
do
|
||
|
mountpoint -q "$mountpoint/$gen" || mount -o x-mount.mkdir -v -t zfs "$dataset/$gen" "$mountpoint/$gen"
|
||
|
done <<< "$(get_old_datasets "$dataset")"
|