3 # Seconds to try to reread partition table
7 exec >"/tmp/${0##*/}.$$.out"
15 while sleep 1; test $cnt != 0; do
16 echo "Trying to rereat partition table on $DEVNAME ($cnt)"
18 test -e "$DEVNAME" || { echo "$DEVNAME doesn't exist, aborting"; exit 1; }
19 #echo "$DEVNAME exists"
20 blockdev --rereadpt "$DEVNAME" && break
21 echo "blockdev --rereadpt failed, exit code: $?"
23 echo "blockdev --rereadpt succeeded"