This commit is contained in:
teldra 2022-02-07 20:23:24 +01:00
parent 229a465588
commit 2a3739a8e7
2 changed files with 7 additions and 2 deletions

View File

@ -18,7 +18,12 @@ if ! [ "$LANGUAGE" == "en" ]; then
echo "${L1}.UTF-8 UTF-8" >> /etc/default/libc-locales
fi
xbps-reconfigure -f glibc-locales
echo "GRUB_ENABLE_CRYPTODISK=y" >> /etc/default/grub
if [ "${ENC}" == "1" ]; then
echo "GRUB_ENABLE_CRYPTODISK=y" >> /etc/default/grub
else
echo "#GRUB_ENABLE_CRYPTODISK=y" >> /etc/default/grub
fi
cat <<EOF > /etc/fstab
tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0

View File

@ -132,7 +132,7 @@ do_partition() {
T="/dev/disk/by-id/${TARGET_PHY_ID}-part${TARGET_PART}"
if [ "${ENCRYPTION_STYLE}" == "a" ]; then
T="/dev/mapper/luks_${TARGETNAME_UNDERSCORE}"
echo -n $pass | cryptsetup luksFormat "${TARGET_PHY_ID}-part${TARGET_PART}" -d -
echo -n $pass | cryptsetup luksFormat --type luks1 "${TARGET_PHY_ID}-part${TARGET_PART}" -d -
#echo -n $pass | sudo cryptsetup luksOpen /dev/sdc1 sdc1 -d -
echo -n $pass | cryptsetup luksOpen "${TARGET_PHY_ID}-part${TARGET_PART}" "luks_${TARGETNAME_UNDERSCORE}" -d -
fi