tytso/e2fsprogs

Allow setting root dir permissions directly in mke2fs

Closed this issue · 2 comments

haarp commented

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!

Hi! I've created PR that adds root_perms option. Can someone review it?

haarp commented

Thanks both of you!