Add function to unmount partitions

This commit is contained in:
Andreas Zweili 2024-01-15 18:38:45 +01:00
parent 7fb0fa6852
commit c7253c13a0
1 changed files with 8 additions and 0 deletions

View File

@ -69,6 +69,14 @@ mount_partitions() {
mount /dev/disk/by-label/BOOTTOFRMT $BOOT_DIR
}
umount_partitions() {
echo "Unmount partitions."
sleep 5
umount $BOOT_DIR
umount $ROOT_DIR
cryptsetup close $LUKS_NAME
}
create_uefi() {
echo "Create UEFI"
curl -o /tmp/pi4-uefi.zip -L https://github.com/pftf/RPi4/releases/download/v1.35/RPi4_UEFI_Firmware_v1.35.zip