#48 sleep after partprobe
Merged 4 years ago by pwhalen. Opened 4 years ago by phomes.
phomes/arm-image-installer sleep-after-partprobe  into  master

file modified
+2
@@ -408,6 +408,8 @@ 

  	fi

  fi

  

+ sleep 5

+ 

  # make temp mount points

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

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

I often see wrong partion names detected in the script immediatly following
partprobe. This is when running on a slow old computer. I have not observed
this when I add a sleep after partprobe. Sleeping for 5 seconds might be
overkill but we do sleep 5 elsewhere in the script so I went with that here
too.

rebased onto 219cc2a

4 years ago

I updated the change so the sleep is placed just before we detect the partions. This then also sleeps after the partprobe when using --resizefs etc.

Pull-Request has been merged by pwhalen

4 years ago
Metadata