Util-Linux package development
 help / color / mirror / Atom feed
From: Tzafrir Cohen <tzafrir@cohens.org.il>
To: util-linux@vger.kernel.org
Subject: sfdisk: dump format changed in 2.26
Date: Thu, 19 Nov 2015 10:28:28 +0100	[thread overview]
Message-ID: <20151119092827.GJ23928@lemon.cohens.org.il> (raw)

Hi,

Is dumping and restoring accross versions of sfdisk supported?

The sfdisk man page documents using --dump to dump partitions of a
system and later restore them by feeding them to sfdisk from the
standard input.

The format of this dump has changed in the rewrite in version 2.26, and
thus a dump generated by newer distributions cannot be used by existing
ones.

New versions seem to be able to use old dumps.

A simple script I use here to convert new format to old:

sed \
        -e 's/type=/Id=/' \
        -e '/^label:/d' \
        -e '/^label-id:/d' \
        -e '/^device:/d' \
        #

>From what I could see, "Id" was changed to "type" in the body and
various extra header lines were added. Al of those changes make the dump
file unreadable by older versions.

Is there any intention to support some sort of compatibility through an
extra option?

Asked originally on https://bugs.debian.org/805277

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
tzafrir@debian.org    |                    | friend

             reply	other threads:[~2015-11-19  9:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-19  9:28 Tzafrir Cohen [this message]
2015-11-24 15:33 ` sfdisk: dump format changed in 2.26 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=20151119092827.GJ23928@lemon.cohens.org.il \
    --to=tzafrir@cohens.org.il \
    --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