Score:0

Struggling with turning on the Project Quota in preseed (ext4, debian 11)

ru flag

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 /?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.