diff --git a/mkimage.sh b/mkimage.sh
index f1619fd07b172094a46910ddf1baa1ca74e6eea5..8bfa9d70b383ba163d9a07f9ef150bcfb07deeb6 100755
--- a/mkimage.sh
+++ b/mkimage.sh
@@ -186,7 +186,7 @@ for PLATFORM in $PLATFORMS; do
 		--tarball - boot.ext2
 
 	# make sure that the filesystem includes boot.scr
-	debugfs /dev/mmcblk0p1 -R "stat boot.scr" \
+	debugfs boot.ext2 -R "stat boot.scr" \
 		| sed 's/ \+/ /g' | grep --quiet "Type: regular Mode: 0644 Flags: 0x0"
 
 	IMGNAME=reform-system-$PLATFORM.img