File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,10 @@ function zfs_passphrase ()
103
103
# Generate key
104
104
print " :: Set ZFS passphrase"
105
105
read -r -p " > ZFS passphrase: " -s pass
106
+ echo " "
106
107
print " Please confirm your passphrase"
107
108
read -r -p " > ZFS passphrase: " -s pass2
109
+ echo " "
108
110
109
111
if [[ " ${pass} " == " ${pass2} " ]];
110
112
then
@@ -235,6 +237,7 @@ function copy_zpool_cache ()
235
237
236
238
function _main ()
237
239
{
240
+ local PATH_TO_THIS_SCRIPT=$( cd ` dirname ${0} ` && pwd)
238
241
tests
239
242
240
243
print " :: Is this the first install or a second install to dualboot?"
@@ -281,7 +284,7 @@ function _main ()
281
284
# By sourcing an existing file before asking the question, we can easily extend the questions/variables
282
285
# or use pre configured install.conf files but configure all missing variables
283
286
284
- install_conf=" install.conf"
287
+ install_conf=" ${PATH_TO_THIS_SCRIPT} / install.conf"
285
288
286
289
if [[ -f ${install_conf} ]];
287
290
then
Original file line number Diff line number Diff line change @@ -37,17 +37,22 @@ function print ()
37
37
38
38
function _main ()
39
39
{
40
+ local PATH_TO_THIS_SCRIPT=$( cd ` dirname ${0} ` && pwd)
41
+
42
+ local PATH_TO_THE_LOCAL_INSTALL_CONF=" ${PATH_TO_THIS_SCRIPT} /install.conf"
43
+ local PATH_TO_THE_DIST_INSTALL_CONF=" ${PATH_TO_THIS_SCRIPT} /install.dist.conf"
44
+
40
45
# bo: sourcing install configuration files
41
- if [[ -f install.dist.conf ]];
46
+ if [[ -f " ${PATH_TO_THE_DIST_INSTALL_CONF} " ]];
42
47
then
43
48
echo " :: Sourcing >>install.dist.conf<<."
44
- . install.dist.conf
49
+ . " ${PATH_TO_THE_DIST_INSTALL_CONF} "
45
50
fi
46
51
47
- if [[ -f install.conf ]];
52
+ if [[ -f " ${PATH_TO_THE_LOCAL_INSTALL_CONF} " ]];
48
53
then
49
54
echo " :: Sourcing >>install.conf<<."
50
- . install.conf
55
+ . " ${PATH_TO_THE_LOCAL_INSTALL_CONF} "
51
56
fi
52
57
# bo: sourcing install configuration files
53
58
You can’t perform that action at this time.
0 commit comments