currently there is a way of setting the owner of the root directory in mke2fs (-E root_owner), but not the permissions. To do this, the fs needs to be mounted first, followed by chmod, followed by unmount. This is not always convenient, e.g. when scripts are used to create a fs. My particular use case involves running ext4 on zram devices.
This has been asked a couple of times on Stack Exchange too: 1, 2
Would it be possible to add a root_perms extended option aswell?
Hello,
currently there is a way of setting the owner of the root directory in mke2fs (
-E root_owner
), but not the permissions. To do this, the fs needs to be mounted first, followed by chmod, followed by unmount. This is not always convenient, e.g. when scripts are used to create a fs. My particular use case involves running ext4 on zram devices.This has been asked a couple of times on Stack Exchange too: 1, 2
Would it be possible to add a
root_perms
extended option aswell?Thanks a lot!