Return-Path: util-linux-owner@vger.kernel.org Received: from lemon.tzafrir.org.il ([95.142.162.245]:57270 "EHLO lemon.tzafrir.org.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819AbbKSJiE (ORCPT ); Thu, 19 Nov 2015 04:38:04 -0500 Date: Thu, 19 Nov 2015 10:28:28 +0100 From: Tzafrir Cohen To: util-linux@vger.kernel.org Subject: sfdisk: dump format changed in 2.26 Message-ID: <20151119092827.GJ23928@lemon.cohens.org.il> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: util-linux-owner@vger.kernel.org List-ID: 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