From bfe78ebeb0d58942b25ccb3f6519d761d467977c Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 27 Feb 2004 19:55:09 +0000 Subject: [PATCH] fixed kernel-pkg installation fixed initscript update git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1049 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/distrib/redhat/initpost | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/util-vserver/distrib/redhat/initpost b/util-vserver/distrib/redhat/initpost index 91501b7..b367094 100755 --- a/util-vserver/distrib/redhat/initpost +++ b/util-vserver/distrib/redhat/initpost @@ -18,6 +18,11 @@ vdir=$1/vdir . "$2" +function relink +{ + test ! -e "$2" -o -L "$2" || mv -f "$2"{,.orig} + ln -s "$1" "$2" +} pushd "$vdir"/etc/init.d &>/dev/null || pushd "$vdir"/etc/rc.d/init.d &>/dev/null || exit 1 @@ -33,9 +38,11 @@ pushd "$vdir"/etc/init.d &>/dev/null || esac done - mv -f halt{,.orig} - ln -s /bin/true halt - + relink /bin/true halt +popd >/dev/null + +pushd "$vdir"/sbin &>/dev/null + relink /bin/true new-kernel-pkg popd >/dev/null pushd "$vdir"/etc &>/dev/null -- 1.8.1.5