Skip to content

Commit 1085652

Browse files
Allow raw/dd image type capture without any partition on disk
1 parent 713a7b0 commit 1085652

File tree

1 file changed

+11
-7
lines changed
  • Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib

1 file changed

+11
-7
lines changed

Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/funcs.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,14 +1417,18 @@ findHDDInfo() {
14171417
;;
14181418
up)
14191419
dots "Reading Partition Tables"
1420-
runPartprobe "$hd"
1421-
getPartitions "$hd"
1422-
if [[ -z $parts ]]; then
1423-
echo "Failed"
1424-
debugPause
1425-
handleError "Could not find partitions ($0)\n Args Passed: $*"
1420+
if [[ $imgType == "dd" ]]; then
1421+
echo "Skipped"
1422+
else
1423+
runPartprobe "$hd"
1424+
getPartitions "$hd"
1425+
if [[ -z $parts ]]; then
1426+
echo "Failed"
1427+
debugPause
1428+
handleError "Could not find partitions ($0)\n Args Passed: $*"
1429+
fi
1430+
echo "Done"
14261431
fi
1427-
echo "Done"
14281432
debugPause
14291433
;;
14301434
esac

0 commit comments

Comments
 (0)