This bit me on 15.10 and 16.04. My fix is very similar:
- sfdisk -H 255 -S 63 --quiet --Linux "$1" <<EOF
-0,,L,*
+ sfdisk --quiet --force "$1" << EOF
+;
It works for me. I issued a pull request on the upstream package quite awhile ago and haven't gotten a response. With the change it seems to work well for me.
This bit me on 15.10 and 16.04. My fix is very similar:
- sfdisk -H 255 -S 63 --quiet --Linux "$1" <<EOF
-0,,L,*
+ sfdisk --quiet --force "$1" << EOF
+;
It works for me. I issued a pull request on the upstream package quite awhile ago and haven't gotten a response. With the change it seems to work well for me.