Bug#767682: D-I: installer hangs on re-formatting ext4 partition (having grub in the partition boot record).
- To: 767682@bugs.debian.org
- Cc: MARTON Jozsef <jmarton@users.sourceforge.net>, Axel Beckert <abe@debian.org>, Cyril Brulebois <kibi@debian.org>, Tianon Gravi <admwiggin@gmail.com>, Juan Mooo <chlespanol@gmail.com>, Tweak Linux <tweaklinux@gmail.com>, "L.perneel" <l.perneel@luperco.com>, adolson <adolson@gmail.com>, Alex Muntada <alexm@alexm.org>, Joseph Valles <j03_v93@yahoo.com>, Jaime T <enopatch@gmail.com>, Ashish SHUKLA <ashish.is@lostca.se>, debian-sparc <debian-sparc@lists.debian.org>
- Subject: Bug#767682: D-I: installer hangs on re-formatting ext4 partition (having grub in the partition boot record).
- From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
- Date: Sat, 23 Jan 2016 05:00:50 +0100
- Message-id: <[🔎] 56A2FAF2.3060006@physik.fu-berlin.de>
- Reply-to: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, 767682@bugs.debian.org
Hello!
> Following is a workaround for this problem in preseed environment that
> worked for me:
>
> d-i partman/early_command string sed -r -e '/^[[:space:]]*mkfs\.
> /s/^([[:space:]]*)(mkfs\.[^[:space:]]+)/\1\2 -F/g' -i /lib/partman
> /commit.d/50format_ext3
Which basically adds the force flag to mkfs.ext3 so it will try to
create the filesystem " even if the specified device is not a partition
on a block special device, or if other parameters do not make sense."
(manpage mkfs.ext3).
Is there a particular reason why we use "-f" in partman-btrfs [1] for
mkfs but not in partman-ext3 for mkfs? It seems that running mkfs.ext3
with -F would make the formatting process more robust for most people
when reading through this bug report. We're also seeing this issue on
sparc64 where mkfs.ext3 is probably choking on the Sun disklabels.
I'd therefore suggest to add -F to mkfs.ext3 in partman-ext3.
Thanks,
Adrian
> [1]
http://anonscm.debian.org/cgit/d-i/partman-btrfs.git/tree/commit.d/format_btrfs#n62
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: