/usr/sbin/ocs-live-bug-report is in clonezilla 3.10.11-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | #!/bin/bash
# This program is used on Clonezilla live to collect some disk info for bug or problem report.
# Load DRBL/Clonezill setting and functions
DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"
. $DRBL_SCRIPT_PATH/sbin/drbl-conf-functions
. /etc/drbl/drbl-ocs.conf
. $DRBL_SCRIPT_PATH/sbin/ocs-functions
# Load the options from config file
[ -e /etc/ocs/ocs-live.conf ] && . /etc/ocs/ocs-live.conf
#
check_if_root
#
export LC_ALL=C
# Get the live media mount point.
get_live_media_mnt_point
if [ -z "$LIVE_MEDIA" -o ! -d "/$LIVE_MEDIA" ]; then
echo "$0 is run in Clonezilla Live! This environment is not Clonezilla live."
echo "Program terminated!"
exit 1
fi
# Settings
# PKG_FROM_DRBL is loaded from drbl.conf, we append "drbl"
PKG_FROM_DRBL="drbl $PKG_FROM_DRBL"
# output the results:
time_now="$(date +%Y%m%d-%H%M)"
output_filename="CLONEZILLA-LIVE-BUG-RPT-${time_now}.txt"
echo -n "Acquiring some info about the system."
for ipkg in $PKG_FROM_DRBL; do
ipkg_ver=""
ipkg_ver="$(dpkg -l $ipkg 2>/dev/null | tail -n 1 | awk -F" " '{print $2"-"$3}')"
[ -n $ipkg_ver ] && installed_pkgs="$installed_pkgs $ipkg_ver"
done
echo -n .
# dump it
cat <<-REP_END > $output_filename
To report the bug or problem, fill the contents in the following table, then send it to Clonezilla live mailing list or post it on the Clonezilla live forum."
-------CUT BEGIN HERE--------------------------------------------
Description of problem:
How reproducible:
Steps to Reproduce:
Actual results:
Expected results:
Some info about the Clonezilla live environment (PLEASE DO NOT EDIT THEM!):
===
REP_END
echo -n .
(
echo "*********************************************************"
echo The contents of $LIVE_MEDIA/Clonezilla-Live-Version:
cat $LIVE_MEDIA/Clonezilla-Live-Version
echo "*********************************************************"
echo "Installed DRBL/Clonezilla related packages: $installed_pkgs"
echo "*********************************************************"
echo "/proc/partitions:"
cat /proc/partitions
echo "*********************************************************"
echo "Partition lists on the system:"
gen_proc_partitions_map_file
disk_list="$(get_disk_list $partition_table)"
for i in $disk_list; do
LC_ALL=C parted -s /dev/$i print
done
echo "*********************************************************"
echo "The info from blkid:"
LC_ALL=C blkid -c /dev/null
echo "*********************************************************"
filesystem="$(get_dir_filesystem $ocsroot)"
echo "Clonezilla image repository dir $ocsroot is $filesystem"
echo "*********************************************************"
) >> $output_filename
echo -n .
#
cat <<-REP_END >> $output_filename
===
-------CUT END HERE----------------------------------------------
REP_END
echo
[ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
echo "The results are in file $output_filename"
[ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
echo "To report the bug or problem, fill the contents in the file $output_filename, then send it to Clonezilla live mailing list or post it on the Clonezilla live forum."
|