sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 12958] New: init script install broken for INSTALL_ROOT
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 12958] New: init script install broken for INSTALL_ROOT
- Date: 7 Aug 2006 13:43:52 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=12958
Summary: init script install broken for INSTALL_ROOT
Product: Sorcery
Version: 1.13.x
Platform: Other
OS/Version: other
Status: NEW
Severity: critical
Priority: P2
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: thomas-forum AT orgis.org
The installation routine for init scripts in current stable and devel sorcery
has a bug for install to some $INSTALL_ROOT...
RUNLEVELS_DIR will be set correctly if no $INSTALL_ROOT/etc.sysconfig/init
was
found, but if there is one, the value read from there is used verbatim.
This value is most likely to be /etc/init.d/runlevels, without the
INSTALL_ROOT
in front.
This results in all attempts to install init scripts to either fail or
(worse!)
to overwrite existing ones in host /.
I suggest this patch to all sorcery branches:
--- sorcery/var/lib/sorcery/modules/libinitd 2006-05-25 06:36:27.000000000
+0200
+++ sorcery-modules/libinitd 2006-08-07 13:49:33.000000000 +0200
@@ -216,7 +216,7 @@
. ${INSTALL_ROOT}/etc/sysconfig/init
# /etc/sysconfig/init might not exist yet so we define this in case
- RUNLEVELS_DIR="${RUNLEVELS_DIR:-$INSTALL_ROOT/etc/init.d/runlevels}"
+ RUNLEVELS_DIR="${INSTALL_ROOT}${RUNLEVELS_DIR:-/etc/init.d/runlevels}"
local runlevel_dir="$RUNLEVELS_DIR/%$script_runlevel"
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [SM-Sorcery-Bugs] [Bug 12958] New: init script install broken for INSTALL_ROOT, bugzilla-daemon, 08/07/2006
Archive powered by MHonArc 2.6.24.