feat: Extract temporary files to RAM (#796)

This commit is contained in:
Kroese 2024-10-12 14:26:04 +02:00 committed by GitHub
parent 94a84b0c2d
commit 5f4c0938ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 26 deletions

View file

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