progress
This commit is contained in:
parent
229a465588
commit
2a3739a8e7
7
etc/base
7
etc/base
|
@ -18,7 +18,12 @@ if ! [ "$LANGUAGE" == "en" ]; then
|
||||||
echo "${L1}.UTF-8 UTF-8" >> /etc/default/libc-locales
|
echo "${L1}.UTF-8 UTF-8" >> /etc/default/libc-locales
|
||||||
fi
|
fi
|
||||||
xbps-reconfigure -f glibc-locales
|
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
|
cat <<EOF > /etc/fstab
|
||||||
tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
|
tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
|
||||||
|
|
2
main.sh
2
main.sh
|
@ -132,7 +132,7 @@ do_partition() {
|
||||||
T="/dev/disk/by-id/${TARGET_PHY_ID}-part${TARGET_PART}"
|
T="/dev/disk/by-id/${TARGET_PHY_ID}-part${TARGET_PART}"
|
||||||
if [ "${ENCRYPTION_STYLE}" == "a" ]; then
|
if [ "${ENCRYPTION_STYLE}" == "a" ]; then
|
||||||
T="/dev/mapper/luks_${TARGETNAME_UNDERSCORE}"
|
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 | sudo cryptsetup luksOpen /dev/sdc1 sdc1 -d -
|
||||||
echo -n $pass | cryptsetup luksOpen "${TARGET_PHY_ID}-part${TARGET_PART}" "luks_${TARGETNAME_UNDERSCORE}" -d -
|
echo -n $pass | cryptsetup luksOpen "${TARGET_PHY_ID}-part${TARGET_PART}" "luks_${TARGETNAME_UNDERSCORE}" -d -
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue