I'm trying to turn on the Project Quota on all my ext4 partitions during preseeded Debian 11 installation
I've started with recipe like this below, with options/prjquota{ prjquota }
oprtion, but this - unlikely to e.g. options/grpquota{ grpquota }
- wont work
d-i partman-auto/expert_recipe string \
boot-root :: \
1024 50 1024 ext4 \
$primary{ } $bootable{ } \
device{ /dev/sda } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
1000 10000000 \
$lvmignore{ } \
$primary{ } \
method{ lvm } \
device{ /dev/sda } \
vg_name{ vg00 } \
. \
500 505 1500 ext4 \
$lvmok{} lv_name{ root } \
in_vg{ vg00 } \
device{ /dev/sda } \
$defaultignore{ } \
format{ } method{ format } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
options/prjquota{ prjquota } \
. \
500 505 1500 ext4 \
$lvmok{} lv_name{ test } \
in_vg{ vg00 } \
device{ /dev/sda } \
$defaultignore{ } \
format{ } method{ format } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /test } \
.
And ended up with editing /etc/mke2fs.conf
d-i preseed/early_command string sed '/features/{s/isize/&,quota/}' /etc/mke2fs.conf; \
sed -i "16i options = quotatype=prjquota" /etc/mke2fs.conf
The edition itself works fine, and the partitions are prepared with proper options turned on. But installator is throwing an error when is trying to mount these partitions.
When I'm trying to format and mount partition manually during installation (during sleep
in early_command), like this
mkdir /mnt/tmp
mke2fs -t ext4 /dev/sda
mount /dev/sda -o prjquota /mnt/tmp
just to check what is happening, I'm getting an invalid parameter error during mounting.
Although this awkward solution (just with a different mount point) works perfectly fine when trying on a completely installed system. So probably some outdated mount tool is used during installation or so.
Can you give me some advice on how can I enable the Project Quota option on mount points like /var
or /
?