diff --git a/bin/dib-lint b/bin/dib-lint index e1e3c82d..5cdeb0c2 100755 --- a/bin/dib-lint +++ b/bin/dib-lint @@ -71,6 +71,11 @@ rc=0 TMPDIR=$(mktemp -d /tmp/tmp.XXXXXXXXXX) trap "rm -rf $TMPDIR" EXIT +# Elements have a README.rst file +for i in $(find $ELEMENTS_DIR -mindepth 1 -maxdepth 1 -type d); do + [ -f "${i}/README.rst" ] || error "$i lacks a README.rst" +done + # note .py files are run through flake8 directly in tox.ini for i in $(find $ELEMENTS_DIR -type f \ -not -name \*.rst \ diff --git a/diskimage_builder/elements/disable-selinux/README.rst b/diskimage_builder/elements/disable-selinux/README.rst new file mode 100644 index 00000000..3aba5531 --- /dev/null +++ b/diskimage_builder/elements/disable-selinux/README.rst @@ -0,0 +1,4 @@ +disable-selinux +--------------- + +Including this element disables SELinux. diff --git a/diskimage_builder/elements/rpm-distro/README.rst b/diskimage_builder/elements/rpm-distro/README.rst new file mode 100644 index 00000000..cce5b8ca --- /dev/null +++ b/diskimage_builder/elements/rpm-distro/README.rst @@ -0,0 +1,4 @@ +rpm-distro +---------- + +Base element for distributions based on RPM.