Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449110 - sys-cluster/vzctl-4.1.1 call rm / at VE reboot
Summary: sys-cluster/vzctl-4.1.1 call rm / at VE reboot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Peter Volkov (RETIRED)
URL: http://git.openvz.org/?p=vzctl;a=comm...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-12-28 22:21 UTC by Andreis Vinogradovs ( slepnoga )
Modified: 2012-12-29 02:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreis Vinogradovs ( slepnoga ) 2012-12-28 22:21:48 UTC
=sys-cluster/vzctl-4.1.1 has call 'rm /' at /etc/init.d/vz reboot because of
VZREBOOTDIR not defined.
Comment 1 Andreis Vinogradovs ( slepnoga ) 2012-12-28 22:24:47 UTC
Kir ( upstream ) commit patch to fix this bug.
Please add this patch in tree ASAP.

diff --git a/etc/init.d/vz-gentoo.in b/etc/init.d/vz-gentoo.in
 index 05ef4e7..2dd2186 100755 (executable)
--- a/etc/init.d/vz-gentoo.in
+++ b/etc/init.d/vz-gentoo.in
@@ -17,6 +17,7 @@ check_config() {
        : ${VZVEINFO:=/proc/vz/veinfo}
        : ${VESTAT:=/proc/vz/vestat}
        : ${VPSCONFDIR:=@VPSCONFDIR@}
+       : ${VZREBOOTDIR:=@VZREBOOTDIR@}
        : ${VZDEV:=venet0}
        : ${VZCONF:=@PKGCONFDIR@/vz.conf}
        : ${VE_STOP_MODE:=suspend}
Comment 2 Mike Gilbert gentoo-dev 2012-12-29 02:27:46 UTC
Yikes. Patch committed.

*vzctl-4.1.1-r1 (29 Dec 2012)

  29 Dec 2012; Mike Gilbert <floppym@gentoo.org> +vzctl-4.1.1-r1.ebuild,
  -vzctl-4.1.1.ebuild:
  Revbump for last change.

  29 Dec 2012; Mike Gilbert <floppym@gentoo.org>
  +files/vzctl-4.1.1-VZREBOOTDIR.patch, vzctl-4.1.1.ebuild:
  Add patch for init script, bug 449110 by slepnoga.