From eb762f903ffc7181c87fa77cada92f65f7c1b893 Mon Sep 17 00:00:00 2001 From: niusmallnan Date: Mon, 18 Mar 2019 13:29:06 +0800 Subject: [PATCH] Fix os-releases symlink --- scripts/layout-initrd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/layout-initrd b/scripts/layout-initrd index 10a943ee..8c78cd36 100755 --- a/scripts/layout-initrd +++ b/scripts/layout-initrd @@ -85,9 +85,9 @@ case ${OS_CONSOLE} in ;; esac -# TODO: usr/lib dir is overwritten by the kernel modules and firmware -ln -s ${INITRD_DIR}/usr/share/ros/os-release ${INITRD_DIR}/usr/lib/ -ln -s ${INITRD_DIR}/usr/share/ros/os-release ${INITRD_DIR}/usr/etc/ +pushd ${INITRD_DIR}/usr/etc +ln -s ../share/ros/os-release . +popd # Support upgrades from old persistent consoles that bind mount these touch ${INITRD_DIR}/usr/bin/docker-containerd