Skip to content

Commit 31d498b

Browse files
committed
Don't print error on first run when folder does not exist yet
1 parent 3b863ee commit 31d498b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def Stage2(CacheDir, RootFSDir, config_json):
421421

422422
# Make sure to erase any folders that might already exist.
423423
# Arch has some files that are read-only so we need to first modify flags to add write permissions
424-
os.system("chmod +w -R {}".format(Stage1_RootFS))
424+
os.system("chmod --silent +w -R {}".format(Stage1_RootFS))
425425
os.system("rm -Rf {}".format(Stage1_RootFS))
426426
CreateDir(Stage1_RootFS)
427427

0 commit comments

Comments
 (0)