Reserve 0% for root on ext4 partitions

This is to have the proper free disk space reported from XBMC,
or even df, since the default is 5%. The impact is low, since
having OpenELEC run everything as root had this limit not be
enforced at any time.
On my 3TB drive, XMBC reported 2.5TB free before the change
and 2.7TB after.
This commit is contained in:
Matthias Saou 2011-12-23 11:43:34 +01:00
parent 6e16a0ab2f
commit f2f9eaadf5

View File

@ -230,13 +230,13 @@ do_install_quick() {
# create filesystem
msg_progress_install "23" "creating filesystem on ${INSTALL_DEVICE}1"
mke2fs -t ext4 ${INSTALL_DEVICE}1 >> $LOGFILE 2>&1
mke2fs -t ext4 -m 0 ${INSTALL_DEVICE}1 >> $LOGFILE 2>&1
msg_progress_install "25" "set uuid and disklabel $DISKLABEL_SYSTEM on ${INSTALL_DEVICE}1"
tune2fs -U random -L $DISKLABEL_SYSTEM ${INSTALL_DEVICE}1 >> $LOGFILE 2>&1
msg_progress_install "28" "creating filesystem on ${INSTALL_DEVICE}2"
mke2fs -t ext4 ${INSTALL_DEVICE}2 >> $LOGFILE 2>&1
mke2fs -t ext4 -m 0 ${INSTALL_DEVICE}2 >> $LOGFILE 2>&1
msg_progress_install "30" "set uuid and disklabel $DISKLABEL_STORAGE on ${INSTALL_DEVICE}2"
tune2fs -U random -L $DISKLABEL_STORAGE ${INSTALL_DEVICE}2 >> $LOGFILE 2>&1