Opened 13 years ago

Closed 13 years ago

#19 closed defect (fixed)

Failsafe kernel installs where Mondo can't find it

Reported by: difdif@… Owned by: Bruno Cornec
Priority: normal Milestone: 2.0.9
Component: mondo Version: 2.0.8
Severity: normal Keywords:
Cc:

Description

Trying to solve another problem I installed the mindi-kernel package from here:

ftp://ftp.mondorescue.org/src/mindi-kernel-1.0.tgz

This installed fine, but Mondo complained that it could not find the kernel when using the -k FAILSAFE option. It seems that the kernel is installed here:

/usr/local/share/mindi/

whereas mondo is looking here:

/usr/local/lib/mindi/

giving the error message:

bzip2: Can't open input file /usr/local/lib/mindi/lib.tar.bz2: No such
file or directory.
Fatal error. Please install mindi-kernel package. You need it. Go to
http://www.mondorescue.org and download it, then install it.
---------------------------------------------------------------------

Solution:
Copying the files across solves the problem. Alternativly, the install script in the mindi-kernel package could be altered to install in the right place.

Change History (3)

comment:1 Changed 13 years ago by Bruno Cornec

Status: newassigned

In fact you should be using a newest mindi-kernel, but this one is not on the ftp under a tar.gz format. Only under an rpm format.

In the mean time, you could use the updated install script attached.
I'll add the mindi-kernel later on.

comment:2 Changed 13 years ago by Bruno Cornec

#!/bin/sh

if [ ! -f "install.sh" ] ; then
echo "Please 'cd' to the directory you have just untarred." >> /dev/stderr
exit 1
fi

if [ "_$PREFIX" != "_" ]; then
local=$PREFIX/usr
if [ -f /usr/local/sbin/mindi ]; then
echo "WARNING: /usr/local/sbin/mindi exists. You should probably
remove it !"
fi
echo $PATH | grep /usr/sbin > /dev/null || echo "Warning - your PATH env
ironmental variable is BROKEN. Please add /usr/sbin to your PATH."
else
local=/usr/local
if [ -f /usr/sbin/mindi ]; then
echo "WARNING: /usr/sbin/mindi exists. You should probably remov
e the mindi package !"
fi
echo $PATH | grep $local/sbin > /dev/null || echo "Warning - your PATH e
nvironmental variable is BROKEN. Please add $local/sbin to your PATH."

fi

echo "mindi-failsafe-kernel will be installed under $local"

echo "Creating target directories ..."
mkdir -p $local/lib/mindi

echo "Copying files ..."
cp -a lib.tar.bz2 vmlinuz $local/lib/mindi/ 

comment:3 Changed 13 years ago by Bruno Cornec

Milestone: 2.0.9
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.