diff --git a/images/openwrt.yaml b/images/openwrt.yaml index f4dcfafc..09b504b1 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 @@ -226,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