From 1d7f62b24ba44d3aa4c0573ed859be7e05d21027 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 3 Sep 2023 23:09:00 +0200 Subject: [PATCH] Create /etc/network/if-post-{up,down}.d directories They are not created by default and the script prints warning when they don't exist. --- alpine-make-vm-image | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alpine-make-vm-image b/alpine-make-vm-image index e740941..46ef54c 100755 --- a/alpine-make-vm-image +++ b/alpine-make-vm-image @@ -560,6 +560,9 @@ cat > etc/network/interfaces <<-EOF post-down /etc/network/if-post-down.d/* EOF +mkdir -p etc/network/if-post-up.d +mkdir -p etc/network/if-post-down.d + if [ "$SERIAL_PORT" ]; then echo "$SERIAL_PORT" >> etc/securetty sed -Ei "s|^[# ]*($SERIAL_PORT:.*)|\1|" etc/inittab