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)

This commit is contained in:
Dimitri John Ledkov 2014-03-19 00:06:45 +00:00
parent d6d58ccc81
commit 4180958bdb
2 changed files with 9 additions and 1 deletions

View file

@ -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

8
debian/changelog vendored
View file

@ -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 <xnox@ubuntu.com> Wed, 19 Mar 2014 00:06:00 +0000
partman-btrfs (14) unstable; urgency=low
* Add nodiratime and discard mount options (see #722598; LP: #978032).