e2fsprogs icon indicating copy to clipboard operation
e2fsprogs copied to clipboard

Allow setting root dir permissions directly in mke2fs

Open haarp opened this issue 2 years ago • 1 comments

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!

haarp avatar Nov 16 '23 13:11 haarp

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

chestnykh avatar Nov 25 '23 11:11 chestnykh

Thanks both of you!

haarp avatar Apr 25 '24 23:04 haarp