small fixes

This commit is contained in:
teldra 2021-03-16 22:38:22 +01:00
parent 619723d51e
commit 82cf9772dc
4 changed files with 15 additions and 3 deletions

View File

@ -38,6 +38,10 @@ cp -rf "${modules}" "${dest}"/tmp/installer
cp -rf "${functions}" "${dest}"/tmp/installer
cp -rf ./run_in_chroot.sh "${dest}"/tmp/installer
chroot "${dest}" "/tmp/installer/run_in_chroot.sh"
for i in $(seq 1 "${users[amount]}"); do
pw+=( "${i}" )
done
chroot "${dest}" "/tmp/installer/run_in_chroot.sh" "${cfg[diskpw]}" "${pw[@]}"
#umounter "${dest}"

View File

@ -106,7 +106,8 @@ if [[ ! "${cfg[fde_key_store]}" == "none" ]]; then
addpkg "cryptsetup"
#input_pw "Disk Password"
output="oem"
setconf "add" "diskpw" "${output}"
#setconf "add" "diskpw" "${output}"
cfg+=( "${output}" )
fi
if check yesno "Do you want to hibernate?" "y"; then

View File

@ -64,7 +64,8 @@ while echo $((index++)) > /dev/null; do
#input_pw "User ${users[name${counter}]} password"
output="oem"
useradder "pw" "${counter}" "${output}"
#useradder "pw" "${counter}" "${output}"
users+=( [pw${counter}]="${output}" )
if [[ "${standalone}" == "1" ]]; then
if ! yesno "More users?" "n"; then

View File

@ -17,6 +17,12 @@ for i in $(find "${vars}" -type f); do
echo "${i}"
source "${i}"
done
cfg+=( [diskpw]="${1}" )
input="${@}"
for i in $(seq 1 "${#input[@]}"); do
[[ ! "${i}" == "1" ]] && users+=( [pw$i]="${input[$i]}" )
done
export run="install"
for i in $(find "${modules}" -mindepth 1 -maxdepth 1 -type d | sort -n ); do