18 lines
812 B
Bash
18 lines
812 B
Bash
#! /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-keyboard.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
|
|
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
|
|
else
|
|
LUKS_KEY="$(cat "/tmp/pika-installer-gtk4-target-manual-luks.txt")"
|
|
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
|
|
fi |