Re: sfdisk input parsing broken with 2.26.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 16, 2015 at 11:59:01AM +0200, Thomas Bechtold wrote:
> [please CC me - I'm not subscribed to the list]
> 
> Hi,
> 
> the following worked fine with 2.20 (tested on Ubuntu):
> 
> sfdisk $IMAGE_BLOCK_DEVICE << EOF
> 1 - - *
> 0 0;
> 0 0;
> 0 0;
> EOF

I have doubts that '-' is documented somewhere, but you're right that
this feature is supported by the old version. I'll fix the problem in
v2.26.2.

If the goal is to set bootable flag then you can use

 echo ",,,*' | sfdisk -N1 $IMAGE_BLOCK_DEVICE

or 
 
 sfdisk --activate ...


Note that there was another problem with boot flag if you resize
partition (commit 4d156d92eb538f9dbc077a2dd181a48d8fdc65cd), will be
also in 2.26.2.


    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux