#46 Fix mount error message
Merged 4 years ago by pwhalen. Opened 4 years ago by phomes.
phomes/arm-image-installer master  into  master

file modified
+5 -2
@@ -411,12 +411,15 @@ 

  # make temp mount points

  mkdir /tmp/{boot,root,fw} &> /dev/null

  mount "$BOOTPART" /tmp/boot &> /dev/null

- mount "$FIRMPART" /tmp/fw

- 

  if [ $? -ne 0 ]; then

  	echo "Error: mount $BOOTPART /tmp/boot failed"

  	exit 1

  fi

+ mount "$FIRMPART" /tmp/fw

+ if [ $? -ne 0 ]; then

+ 	echo "Error: mount $FIRMPART /tmp/fw failed"

+ 	exit 1

+ fi

  

  if [ "$RESIZEFS" = "" ]; then

  	get_lvm_name

This fixes a confusing error message that I hit:

mount: /tmp/fw: special device /dev/mmcblk01 does not exist.
Error: mount /dev/mmcblk02 /tmp/boot failed

Pull-Request has been merged by pwhalen

4 years ago
Metadata