From 4180958bdbe36f88fdee7b35a23f56cb65d861b5 Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Wed, 19 Mar 2014 00:06:45 +0000 Subject: [PATCH] Force formatting as btrfs filesystem, to bypass mkfs.btrfs safety-check that target (possibly) contains existing filesystem when formatting partitions with btrfs. (LP: #1276356) (Closes: #721847) --- commit.d/format_btrfs | 2 +- debian/changelog | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/commit.d/format_btrfs b/commit.d/format_btrfs index 3f7044a..030cd22 100755 --- a/commit.d/format_btrfs +++ b/commit.d/format_btrfs @@ -59,7 +59,7 @@ for dev in $DEVICES/*; do code=0 # Ensure label is quoted correctly log-output -t partman --pass-stdout \ - mkfs.btrfs ${label:+-L "$label"} \ + mkfs.btrfs -f ${label:+-L "$label"} \ $device >/dev/null || code=$? sync db_progress STOP diff --git a/debian/changelog b/debian/changelog index e4929e0..e554cf3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +partman-btrfs (15) UNRELEASED; urgency=medium + + * Force formatting as btrfs filesystem, to bypass mkfs.btrfs + safety-check that target (possibly) contains existing filesystem when + formatting partitions with btrfs. (LP: #1276356) (Closes: #721847) + + -- Dimitri John Ledkov Wed, 19 Mar 2014 00:06:00 +0000 + partman-btrfs (14) unstable; urgency=low * Add nodiratime and discard mount options (see #722598; LP: #978032).