From 8c8d16854f81bb5d1f1df6fefe809693b2647e05 Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Thu, 22 Aug 2024 15:26:43 +0200 Subject: [PATCH 1/4] Remove non-working commands related to device-quirks --- frzr | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frzr b/frzr index 23f04fe..21a33aa 100755 --- a/frzr +++ b/frzr @@ -268,10 +268,6 @@ elif [ $function == "get-channel" ]; then echo "get-channel" #TODO create frzr-channel to get target channel #echo ${FRZR_ROOT}/source -elif [ $function == "build-initramfs" ]; then - source frzr-initramfs -elif [ $function == "configure-tweaks" ]; then - source frzr-tweaks elif [ $function == "package-options" ]; then #User selected packages to be added to the install source frzr-extras From 2c974bd3f1b9d437357b225e3301062b5f7d4c26 Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Thu, 22 Aug 2024 15:35:27 +0200 Subject: [PATCH 2/4] Fix frzr-autoupdate service --- frzr-autoupdate.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frzr-autoupdate.service b/frzr-autoupdate.service index 5655371..e7f3039 100644 --- a/frzr-autoupdate.service +++ b/frzr-autoupdate.service @@ -5,6 +5,7 @@ Wants=network-online.target [Service] Type=oneshot -ExecStart=frzr-deploy +Environment="SHOW_UI=0" +ExecStart=frzr deploy RemainAfterExit=false StandardOutput=journal From 5a5bb4b6d24543cd28adab3e66774b1080679d28 Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Thu, 22 Aug 2024 15:38:29 +0200 Subject: [PATCH 3/4] Handle download failure --- __frzr-deploy | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/__frzr-deploy b/__frzr-deploy index 2d74b29..1c0eb41 100644 --- a/__frzr-deploy +++ b/__frzr-deploy @@ -355,7 +355,13 @@ frzr_deploy() { sleep 1; done elif [ "${SHOW_UI}" = "0" ]; then - curl --http1.1 -L -o "${IMG_FILE}" -C - "${IMG_URL}" + if ! curl --http1.1 -L -o "${IMG_FILE}" -C - "${IMG_URL}"; then + TASK_ERROR=1 + TASK_ERROR_MSG="Download failed" + STATE="FAIL" + send_data + continue + fi else TASK_MSG="Using Whiptail to show download progress" send_data From a3b634334a5c0ac0d8765392482b814db58cfa56 Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Fri, 23 Aug 2024 04:06:21 +0200 Subject: [PATCH 4/4] Remove documentation for removed functions --- frzr | 2 -- 1 file changed, 2 deletions(-) diff --git a/frzr b/frzr index 21a33aa..1b4440d 100755 --- a/frzr +++ b/frzr @@ -23,8 +23,6 @@ frzr unlock (deployment) [Unlock the specified deployment, or the running one if frzr set-channel [Set the update channel stable/testing/unstable] frzr get-channel [Get the update channel currently in use] frzr version [Get the version of FRZR] -frzr build-initramfs [Build the initramfs for the kernel] -frzr configure-tweaks [Configure system specific quirks] frzr bootstrap [Format and configure a drive to be used with FRZR] [Environment]