From: Karel Zak <kzak@redhat.com>
To: Thomas Bechtold <tbechtold@suse.com>
Cc: util-linux@vger.kernel.org
Subject: Re: sfdisk input parsing broken with 2.26.1
Date: Thu, 16 Apr 2015 13:24:18 +0200 [thread overview]
Message-ID: <20150416112418.GD6757@ws.net.home> (raw)
In-Reply-To: <552F87E5.5010507@suse.com>
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@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2015-04-16 11:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-16 9:59 sfdisk input parsing broken with 2.26.1 Thomas Bechtold
2015-04-16 11:24 ` Karel Zak [this message]
2015-04-16 11:51 ` Ruediger Meier
2015-04-16 16:05 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150416112418.GD6757@ws.net.home \
--to=kzak@redhat.com \
--cc=tbechtold@suse.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox