small fixes

This commit is contained in:
teldra 2021-03-16 23:21:51 +01:00
parent 4971424959
commit 7d9ee2981c
2 changed files with 6 additions and 3 deletions

View File

@ -80,8 +80,10 @@ fi
target_partition="${target_partition_tmp}"
if [[ ! "${cfg[fde_key_store]}" == "none" ]]; then
echo -n "${cfg[diskpw]}" | cryptsetup luksFormat --type luks1 "${target_partition}" -d -
echo -n "${cfg[diskpw]}" | cryptsetup luksOpen "${target_partition}" "voidluks-${diskid}" -d -
#echo -n "${cfg[diskpw]}" | cryptsetup luksFormat --type luks1 "${target_partition}" -d -
#echo -n "${cfg[diskpw]}" | cryptsetup luksOpen "${target_partition}" "voidluks-${diskid}" -d -
echo -n "oem" | cryptsetup luksFormat --type luks1 "${target_partition}" -d -
echo -n "oem" | cryptsetup luksOpen "${target_partition}" "voidluks-${diskid}" -d -
target_partition="/dev/mapper/voidluks-${diskid}"
fi

View File

@ -12,7 +12,8 @@ for i in $(seq 1 "${users[amount]}"); do
fi
echo password for "${users[name$i]}"
echo -e "${users[pw$i]}\n${users[pw$i]}" | passwd "${users[name$i]}"
#echo -e "${users[pw$i]}\n${users[pw$i]}" | passwd "${users[name$i]}"
echo -e "oem\noem" | passwd "${users[name$i]}"
else
echo bereits in /etc/passwd vorhanden: "${users[name$i]}"
echo ueberspinge..