From 85701ef77211935f16d06224caf15571faa1ec68 Mon Sep 17 00:00:00 2001 From: Din Music Date: Wed, 20 Nov 2024 20:11:49 +0000 Subject: [PATCH 1/2] images/openwrt: Install sudo on snapshot release Signed-off-by: Din Music --- images/openwrt.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/images/openwrt.yaml b/images/openwrt.yaml index f4dcfafc..dad26dbc 100644 --- a/images/openwrt.yaml +++ b/images/openwrt.yaml @@ -214,8 +214,6 @@ packages: - packages: - sudo action: install - releases: - - 23.05 actions: - trigger: post-unpack From b3d3dd126104a23f3092ad3eb3867649a06570bd Mon Sep 17 00:00:00 2001 From: Din Music Date: Wed, 20 Nov 2024 21:14:08 +0000 Subject: [PATCH 2/2] images/openwrt: Ensure /var/log exists Package manager apk fails when installing packages because /var/log dir does not exist. Signed-off-by: Din Music --- images/openwrt.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/images/openwrt.yaml b/images/openwrt.yaml index dad26dbc..09b504b1 100644 --- a/images/openwrt.yaml +++ b/images/openwrt.yaml @@ -224,6 +224,15 @@ actions: architectures: - amd64 +- trigger: post-unpack + action: | + #!/bin/sh + # Ensure /var/log exists before running package manager. + # Otherwise, the command can fail due to missing directory. + mkdir -p /var/log + releases: + - snapshot + - trigger: post-files action: | #!/bin/sh