Skip to content

Commit 07c7091

Browse files
hexdefinedchenxiaolong
authored andcommitted
post-fs-data.sh: Create directories with mkdir -p
`$mnt_dir` was not created with `mkdir -p`, unlike `$mnt_base`. This caused the system-ca-certs module to only work for the first boot after it was enabled, since `mkdir` would fail on subsequent boots.
1 parent a5129d3 commit 07c7091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custota-tool/system-ca-certs/post-fs-data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ for cert_dir in "${apex_dir}" "${system_dir}"; do
3333
mnt_dir=${mnt_base}/${mnt_index}
3434
let mnt_index+=1
3535

36-
mkdir "${mnt_dir}"
36+
mkdir -p "${mnt_dir}"
3737
nsenter --mount=/proc/1/ns/mnt -- \
3838
mount -t tmpfs "${module_id}" "${mnt_dir}"
3939

0 commit comments

Comments
 (0)