Subject: hdd-size=auto not working with EXT3/EXT4
Package: live-build
Version: 5.0~a8-1
Severity: normal
Tags: upstream, patch

Dear Maintainer,

At the moment I manually set hdd-size to around 50 megabyte more than my live 
image require.
As the Calculate_partition_size does not take into account, that ext3/ext4 has 
a journal.

I have attached a patch, it not "perfect" or tested, but should give you a idea 
about how to fix it.

Some useful links:
http://lists.openwall.net/linux-ext4/2010/01/11/3 (how the journal size is 
calculated)
http://linux.die.net/man/8/mkfs.ext4 (usage type, default block size)
ftp://hgdownload.cse.ucsc.edu/cbsebackups.old/encode-01/etc/mke2fs.conf 
(mke2fs.conf)

Regards Kristian Klausen
                                          

Attachment: functions_losetup.sh.patch
Description: Binary data

Reply via email to