Package: clonezilla
Version: 5.14.5-1
Severity: normal

Hi,

I'm forwarding this one from https://github.com/grml/grml/issues/264
which I furthermore brought up at upstream at
https://sourceforge.net/p/clonezilla/bugs/437/.

When running clonezilla and choosing the remote-dest + restoredisk
options, and if netcat-openbsd is present and used as `nc`, its
execution fails with:

| OpenBSD netcat is not supported!

Quoting from clonezilla's source:

  case "$ONTHEFLY_NET_PIPE" in
  netcat)
    # check if command is nc or netcat
    if command -v nc &>/dev/null; then
       NC_CMD="nc"
    elif command -v netcat &>/dev/null; then
       NC_CMD="netcat"
  [...]

    LC_ALL=C $NC_CMD -h > $nc_tmp 2>&1
    if [ -n "$(grep -Ei "^OpenBSD" $nc_tmp)" ]; then
       # netcat.openbsd won't exit if its option -N is not used. However,
       # if it's used, it has an issue to receive from stdin in the destination
       [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
       echo "OpenBSD netcat is not supported!" | tee --append ${OCS_LOGFILE}
       [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
       echo "$msg_program_stop!!"
       exit 1
    fi

Currently, the clonezilla package doesn't depend on neither
netcat-openbsd nor netcat-traditional.

I've discussed this with upstream at
https://sourceforge.net/p/clonezilla/bugs/437/ and our conclusion
is, that a check for nc.traditional should be added to clonezilla
source. Then the clonezilla package could depend/recommend/suggest
on netcat-traditional.

Reporting this to have a tracking issue also within Debian, as
promised towards upstream.

regards
-mika-

Attachment: signature.asc
Description: PGP signature

Reply via email to