sfdisk: dump format changed in 2.26

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

 



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@xxxxxxxxxx | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@xxxxxxxxxxxxx |                    |  best
tzafrir@xxxxxxxxxx    |                    | friend
--
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