Blob Blame History Raw
>From 183645ca57f466ac89eb018c72348c2a3a5b38a3 Mon Sep 17 00:00:00 2001
Message-Id: <183645ca57f466ac89eb018c72348c2a3a5b38a3.1567901440.git.crobinso@redhat.com>
In-Reply-To: <ffc788c6f841f1dea9cbba761e0a15c6080747da.1567901440.git.crobinso@redhat.com>
References: <ffc788c6f841f1dea9cbba761e0a15c6080747da.1567901440.git.crobinso@redhat.com>
From: Cole Robinson <crobinso@redhat.com>
Date: Sat, 7 Sep 2019 15:53:08 -0400
Subject: [PATCH 2/3] rootfs: Fix systemd /sbin/init symlinking

Signed-off-by: Cole Robinson <crobinso@redhat.com>
---
 rootfs-builder/rootfs.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/rootfs-builder/rootfs.sh b/rootfs-builder/rootfs.sh
index 4bdc10d..fb020c0 100755
--- a/rootfs-builder/rootfs.sh
+++ b/rootfs-builder/rootfs.sh
@@ -388,9 +388,7 @@ prepare_overlay()
 {
 	pushd "${ROOTFS_DIR}" > /dev/null
 	mkdir -p ./etc ./lib/systemd ./sbin ./var
-	ln -sf  ./usr/lib/systemd/systemd ./init
-	ln -sf  ../../init ./lib/systemd/systemd
-	ln -sf  ../init ./sbin/init
+	ln -sf  ../lib/systemd/systemd ./sbin/init
 	# Kata sytemd unit file
 	mkdir -p ./etc/systemd/system/basic.target.wants/
 	ln -sf /usr/lib/systemd/system/kata-containers.target ./etc/systemd/system/basic.target.wants/kata-containers.target
-- 
2.21.0