feat: Extract temporary files to RAM

This commit is contained in:
Kroese 2024-10-12 14:19:16 +02:00 committed by GitHub
parent 6936a03132
commit e056348b9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1665,7 +1665,10 @@ prepareInstall() {
local arch="$4" local arch="$4"
local key="$5" local key="$5"
local driver="$6" local driver="$6"
local drivers="$TMP/drivers" local drivers="/run/shm/drivers"
rm -rf "$drivers"
mkdir -p "$drivers"
ETFS="[BOOT]/Boot-NoEmul.img" ETFS="[BOOT]/Boot-NoEmul.img"
@ -1676,8 +1679,6 @@ prepareInstall() {
local msg="Adding drivers to image..." local msg="Adding drivers to image..."
info "$msg" && html "$msg" info "$msg" && html "$msg"
mkdir -p "$drivers"
if ! tar -xf /drivers.txz -C "$drivers" --warning=no-timestamp; then if ! tar -xf /drivers.txz -C "$drivers" --warning=no-timestamp; then
error "Failed to extract drivers!" && return 1 error "Failed to extract drivers!" && return 1
fi fi