pika-installer-gtk4/data/scripts/manual-partition-install.sh

18 lines
815 B
Bash
Raw Normal View History

2024-01-23 19:46:00 +01:00
#! /bin/bash
set -e
DISK="$(cat "/tmp/pika-installer-gtk4-target-manual.txt")"
LOCALE="$(cat "/tmp/pika-installer-gtk4-lang.txt")"
KEYBOARD="$(cat "/tmp/pika-installer-gtk4-target-auto.txt")"
TIMEZONE="$(cat "/tmp/pika-installer-gtk4-timezone.txt")"
touch "/tmp/pika-installer-gtk4-status-parting.txt"
if [[ ! -f "/tmp/pika-installer-gtk4-target-manual-luks.txt" ]]
then
2024-01-24 14:55:08 +01:00
pikainstall -r ${DISK}/ -l ${LOCALE} -k ${KEYBOARD} -t ${TIMEZONE} && touch /tmp/pika-installer-gtk4-successful.txt || touch /tmp/pika-installer-gtk4-fail.txt && exit 1
2024-01-23 19:46:00 +01:00
else
LUKS_KEY="$(cat "/tmp/pika-installer-gtk4-target-manual-luks.txt")"
2024-01-24 14:55:08 +01:00
pikainstall -r ${DISK}/ -c ${LUKS_KEY} -l ${LOCALE} -k ${KEYBOARD} -t ${TIMEZONE} && touch /tmp/pika-installer-gtk4-successful.txt || touch /tmp/pika-installer-gtk4-fail.txt && exit 1
2024-01-23 19:46:00 +01:00
fi