From db1fa5b3c3ed663cccac5883ddc4df1b05950890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Fri, 20 Jan 2023 11:56:39 +0100 Subject: [PATCH] stages/mkdir: enhance stage documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Explicitly mention the stage behavior with regard to setting mode on newly created or existing directories. Signed-off-by: Tomáš Hozza --- stages/org.osbuild.mkdir | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stages/org.osbuild.mkdir b/stages/org.osbuild.mkdir index c529750a..bd234948 100755 --- a/stages/org.osbuild.mkdir +++ b/stages/org.osbuild.mkdir @@ -3,7 +3,14 @@ Create directories within the tree. Can create one or more directories, optionally also the -intermediate directories. +intermediate directories. The stage can gracefully handle +directories that already exist. + +Please note that the stage won't change the mode of existing +directories. If you want to change the mode of an existing +directory, you need to use the `org.osbuild.chmod` stage. +Mode is applied only to newly created directories and umask +value is taken into account. """ import os