Skip to contentSkip to conversation

package/rauc: prevent occurring the error when directory exists

PATCH New Bartosz Bilas 2 participants 3 messages Nov 13, 2020 – Nov 16, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/rauc: prevent occurring the error when directory exists

Add -p argument that ignore that specified directory already exists.

Fixes:
mkdir: cannot create directory ?/home/bartekk/buildroot-2020.11-rc1/output/target/usr/lib/systemd/system/rauc.service.d?: File exists

---
 package/rauc/rauc.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/rauc/rauc.mk +1 -1
index 1915c783aa..61c50ab316 100644
@@ -31,7 +31,7 @@ RAUC_DEPENDENCIES += systemd
 endif
 
 define RAUC_INSTALL_INIT_SYSTEMD
-	mkdir $(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d
+	mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d
 	printf '[Install]\nWantedBy=multi-user.target\n' \
 		>$(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d/buildroot-enable.conf
 endef
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 package/rauc: prevent occurring the error when directory exists

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bartosz" == Bartosz Bilas <[email protected]> writes:

Add -p argument that ignore that specified directory already exists.
Fixes:
mkdir: cannot create directory ?/home/bartekk/buildroot-2020.11-rc1/output/target/usr/lib/systemd/system/rauc.service.d?: File exists

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 package/rauc: prevent occurring the error when directory exists

In reply to Bartosz Bilas
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bartosz" == Bartosz Bilas <[email protected]> writes:

Add -p argument that ignore that specified directory already exists.
Fixes:
mkdir: cannot create directory ?/home/bartekk/buildroot-2020.11-rc1/output/target/usr/lib/systemd/system/rauc.service.d?: File exists

Committed to 2020.02.x and 2020.08.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard