From e5ba0e9172a83480b7c4e612b4aebd334b8ecfb9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 23 Oct 2017 11:28:31 +0000 Subject: main/alpine-baselayout: fix pre-upgrade to handle /var/run fixes #8029 --- main/alpine-baselayout/alpine-baselayout.pre-upgrade | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main/alpine-baselayout/alpine-baselayout.pre-upgrade') diff --git a/main/alpine-baselayout/alpine-baselayout.pre-upgrade b/main/alpine-baselayout/alpine-baselayout.pre-upgrade index f7c8db83c4..e2dd88c46d 100644 --- a/main/alpine-baselayout/alpine-baselayout.pre-upgrade +++ b/main/alpine-baselayout/alpine-baselayout.pre-upgrade @@ -14,6 +14,13 @@ for i in /etc/modprobe.d/*; do mv "$i" "$i".conf done +# migrate /var/run directory to /run +if [ -d /var/run ]; then + cp -a /var/run/* 2>/dev/null + rm -rf /var/run + ln -s /run /var/run +fi + addgroup -S -g 42 shadow 2>/dev/null exit 0 -- cgit v1.2.3