Split off ZFS-relatesd tasks into 'zfs.sh'
This commit is contained in:
12
pre-inst.sh
12
pre-inst.sh
@@ -48,9 +48,7 @@ fi
|
||||
timedatectl
|
||||
|
||||
if [[ ! "$(hostname)" == "debian-live" ]]; then
|
||||
zgenhostid \
|
||||
-f \
|
||||
0x00bab10c
|
||||
"${baseDir}/zfs.sh" --host-id
|
||||
fi
|
||||
|
||||
|
||||
@@ -98,9 +96,7 @@ fi
|
||||
|
||||
# if [[ ! "${*}" = *--no-part* ]]; then
|
||||
if [[ -f "/etc/zfs/keys/${hostname,,}.key" ]]; then
|
||||
cp \
|
||||
/etc/zfs/keys/${hostname,,}.key \
|
||||
/mnt/etc/zfs/keys/
|
||||
"${baseDir}/zfs.sh" --key
|
||||
fi
|
||||
# fi
|
||||
|
||||
@@ -110,9 +106,7 @@ fi
|
||||
|
||||
"${baseDir}/chroot.sh" --continue
|
||||
|
||||
zpool \
|
||||
export \
|
||||
-a
|
||||
"${baseDir}/zfs.sh" --unmount
|
||||
|
||||
printf \
|
||||
'\033[?47h\033[2J\033[H'
|
||||
|
||||
Reference in New Issue
Block a user