tomuta / debian-mini-odroid-c1

Script to build a minimal Debian sd card image.
75 stars 39 forks source link

sfdisk: unrecoginized option --in-order [jessie / 15.10] #34

Open phipolis opened 8 years ago

phipolis commented 8 years ago

Trying to build the jessie image, I'm hitting a failure in createimg:

sfdisk: unrecognized option '--in-order'

Searching for information about the --in-order option, I found it referred to as an "undocumented dangerous option". Perhaps it was removed after a certain version? Do others typically build in an older version of Ubuntu?

build target jessie sfdisk from util-linux 2.26.2 Ubuntu 15.10

wombaz commented 8 years ago

Hi, it works with sfdisk version 2.25.2 (sfdisk from util-linux 2.25.2). I also tried to build it on Ubuntu 15.10 and it failed at the end with the error message above. Ubuntu 15.10 has the Version 2.26.2 and there they removed the option '--in-order' . Install Version 2.25.2 and everything goes well. The accurate way would be to install it as a .deb file and use update-alternatives to manage the different versions. In my case i copied the binary file from Debian Jessie ( /sbin/sfdisk) to my ubuntu1510 build machine (backup the original binary /sbin/sfdisk_bac and revert it after the build).