Compare commits
3 Commits
3e233de780
...
00324dfb5d
| Author | SHA1 | Date | |
|---|---|---|---|
|
00324dfb5d
|
|||
|
e03ff714a7
|
|||
|
6e1670ac6a
|
20
mount.sh
Executable file
20
mount.sh
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
|
||||||
|
mount \
|
||||||
|
--types proc \
|
||||||
|
proc \
|
||||||
|
/mnt/proc
|
||||||
|
mount \
|
||||||
|
--types sysfs \
|
||||||
|
sys \
|
||||||
|
/mnt/sys
|
||||||
|
mount \
|
||||||
|
--bind \
|
||||||
|
/dev \
|
||||||
|
/mnt/dev
|
||||||
|
mount \
|
||||||
|
--types devpts \
|
||||||
|
pts \
|
||||||
|
/mnt/dev/pts
|
||||||
@@ -84,7 +84,7 @@ elif [[ "${ID}" == 'debian' ]]; then
|
|||||||
"${baseDir}/debian.sh" --sources
|
"${baseDir}/debian.sh" --sources
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"${baseDir}/rbind.sh"
|
"${baseDir}/mount.sh"
|
||||||
|
|
||||||
"${baseDir}/host-id.sh"
|
"${baseDir}/host-id.sh"
|
||||||
|
|
||||||
|
|||||||
10
zfs.sh
10
zfs.sh
@@ -30,14 +30,14 @@ if [[ "${1}" == '--format' ]]; then
|
|||||||
|
|
||||||
while [[ ! "${zpoolPassword}" == "${zpoolPasswordVerify}" ]] || [[ -z "${zpoolPassword}" ]] || [[ "${#zpoolPassword}" -lt '8' ]]; do
|
while [[ ! "${zpoolPassword}" == "${zpoolPasswordVerify}" ]] || [[ -z "${zpoolPassword}" ]] || [[ "${#zpoolPassword}" -lt '8' ]]; do
|
||||||
printf \
|
printf \
|
||||||
"\nEnter a password to encrypt your root pool (minimum 8 characters):\n"
|
"Enter a password to encrypt your root pool (minimum 8 characters):\n"
|
||||||
read \
|
read \
|
||||||
-r \
|
-r \
|
||||||
-s \
|
-s \
|
||||||
zpoolPassword
|
zpoolPassword
|
||||||
|
|
||||||
printf \
|
printf \
|
||||||
"\nVerify the password to encrypt your root pool:\n"
|
"Verify the password to encrypt your root pool:\n"
|
||||||
read \
|
read \
|
||||||
-r \
|
-r \
|
||||||
-s \
|
-s \
|
||||||
@@ -45,13 +45,13 @@ if [[ "${1}" == '--format' ]]; then
|
|||||||
|
|
||||||
if [[ ! "${zpoolPassword}" == "${zpoolPasswordVerify}" ]]; then
|
if [[ ! "${zpoolPassword}" == "${zpoolPasswordVerify}" ]]; then
|
||||||
printf \
|
printf \
|
||||||
"ERROR:\tPasswords do not match!\n"
|
"ERROR:\tPasswords do not match!\n\n"
|
||||||
elif [[ -z "${zpoolPassword}" ]]; then
|
elif [[ -z "${zpoolPassword}" ]]; then
|
||||||
printf \
|
printf \
|
||||||
"ERROR:\tPassword is empty!\n"
|
"ERROR:\tPassword is empty!\n\n"
|
||||||
elif [[ "${#zpoolPassword}" -lt '8' ]]; then
|
elif [[ "${#zpoolPassword}" -lt '8' ]]; then
|
||||||
printf \
|
printf \
|
||||||
"ERROR:\tPassword is too short!\n"
|
"ERROR:\tPassword is too short!\n\n"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user