Skip to content

Commit

Permalink
Allow raw/dd image type capture without any partition on disk
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Roth committed Jul 17, 2021
1 parent 713a7b0 commit 1085652
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1417,14 +1417,18 @@ findHDDInfo() {
;;
up)
dots "Reading Partition Tables"
runPartprobe "$hd"
getPartitions "$hd"
if [[ -z $parts ]]; then
echo "Failed"
debugPause
handleError "Could not find partitions ($0)\n Args Passed: $*"
if [[ $imgType == "dd" ]]; then
echo "Skipped"
else
runPartprobe "$hd"
getPartitions "$hd"
if [[ -z $parts ]]; then
echo "Failed"
debugPause
handleError "Could not find partitions ($0)\n Args Passed: $*"
fi
echo "Done"
fi
echo "Done"
debugPause
;;
esac
Expand Down

0 comments on commit 1085652

Please sign in to comment.