Open Talkless opened 8 years ago
@Talkless I think this is a sound idea to add this feature. Thanks
I seem to have run across this issue - I'm trying to get some file systems formatted with specific labels, but blockdev.formatted provides no apparent option to specify a label that would in turn be passed down to the mkfs function.
In addition to this, it would also be great to support passing arbitrary options to the various mkfs tools. For example, I currently need to use a cmd.run to format an XFS filesystem because neither -L nor -f are supported by blockdev.formatted:
format_device:
cmd.run:
- name: mkfs.xfs -f -LDOCKER /dev/{{ storage_dev }}
- unless: blkid -p -n xfs /dev/{{ storage_dev }}|grep xfs
Is there still no way to pass arguments to blockdev.formatted?
No but we are always willing to accept PRs :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Ping.
Thank you for updating this issue. It is no longer marked as stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
And another ping.
Thank you for updating this issue. It is no longer marked as stale.
Description of Issue/Question
mkfs.ext4 and mkfs.xfs has -L option to set human readable file system label. Though blockdev.formatted accepts kwargs, blockdev.format execution module does not currently have ability to set label.