Public bug reported:

Binary package hint: heartbeat

Description:    Ubuntu 8.04
Release:        8.04
heartbeat 2.1.3-2

The following code in the OCF Filesystem (starting with line 724) agent does
not seem to be compatible with a plain /bin/sh (like dash):

case $DEVICE in
"")     ocf_log err "Please set OCF_RESKEY_device to the device to be managed"
        exit $OCF_ERR_ARGS
        ;;
-*) # Oh... An option to mount instead...  Typically -U or -L
        ;;
[^/]*:/*)       # An NFS filesystem specification...
        ;;
//[^/]*/*)      # An SMB filesystem specification...
        ;;
/dev/null)      # Special case for BSC
        blockdevice=yes
        ;;
*)      if [ ! -b "$DEVICE"  -a ! -d "$DEVICE" -a "X$OP" != Xstart ] ; then
                ocf_log warn "Couldn't find device [$DEVICE]. Expected /dev/???
to exist"
        fi
        if [ ! -d "$DEVICE" ];then
                blockdevice=yes
        fi
        ;;
esac

The case for nfs does not match if the script is invoked with dash, but it does
if it is run with sh.

** Affects: heartbeat (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Filesystem agent requires a bash shell
https://bugs.launchpad.net/bugs/248737
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to