Skip to content

Commit 3aa0ff4

Browse files
tomassrnkaclaude
andcommitted
fix: make chattr non-fatal in provision script
Some busybox versions (e.g., busybox-static on ARM64 Ubuntu) lack chattr support. Make the calls non-fatal so provisioning succeeds regardless of busybox capabilities. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ff842dc commit 3aa0ff4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/orchestrator/internal/template/build/phases/base

packages/orchestrator/internal/template/build/phases/base/provision.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RESULT_PATH="{{ .ResultPath }}"
77
echo "Starting provisioning script"
88

99
echo "Making configuration immutable"
10-
$BUSYBOX chattr +i /etc/resolv.conf
10+
$BUSYBOX chattr +i /etc/resolv.conf 2>/dev/null || true
1111

1212
# Helper function to check if a package is installed
1313
is_package_installed() {
@@ -95,7 +95,7 @@ echo "Linking systemd to init"
9595
ln -sf /lib/systemd/systemd /usr/sbin/init
9696

9797
echo "Unlocking immutable configuration"
98-
$BUSYBOX chattr -i /etc/resolv.conf
98+
$BUSYBOX chattr -i /etc/resolv.conf 2>/dev/null || true
9999

100100
echo "Finished provisioning script"
101101

0 commit comments

Comments
 (0)