From 0a969a34d0ca6afcbb5930e3d28eae4f3e1abd36 Mon Sep 17 00:00:00 2001 From: Mohamed Larabi Date: Fri, 26 Apr 2013 19:30:40 +0200 Subject: [PATCH] Fix the test to determine whether the distro is SysVinit or systemd based --- vbuild-init-lxc.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vbuild-init-lxc.sh b/vbuild-init-lxc.sh index 22f68222..329bae5b 100755 --- a/vbuild-init-lxc.sh +++ b/vbuild-init-lxc.sh @@ -563,8 +563,7 @@ function setup_lxc() { exit 1 fi - type /bin/systemd >/dev/null 2>&1 - if [ $? -ne 0 ]; then + if [ ! -d ${rootfs_path}/etc/systemd ]; then configure_fedora_init else configure_fedora_systemd @@ -590,7 +589,7 @@ function setup_lxc() { $lxc 524288 - exe + exe /sbin/init @@ -917,7 +916,7 @@ function main () { if [ "$personality" == "linux32" ]; then arch=i386 - arch2=x86 + arch2=i686 elif [ "$personality" == "linux64" ]; then arch=x86_64 arch2=x86_64 -- 2.47.0