Skip to content

Commit 8739df2

Browse files
authored
fix: Try to fix var encryption ordering (#10572)
Wait for `setup-var-encryption.sh` to finish before trying `var.mount`. That way, there's no chance that the log copying races with the fstab mount.
1 parent 002107c commit 8739df2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ic-os/components/upgrade/systemd-generators/mount-generator

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ function make_var_cryptsetup() {
133133
echo "After=cryptsetup-pre.target"
134134
echo "Before=blockdev@dev-mapper-var_crypt.target"
135135
echo "Wants=blockdev@dev-mapper-var_crypt.target"
136+
echo "Before=var.mount"
136137
echo "Conflicts=umount.target"
137138
echo "Before=cryptsetup.target"
138139
echo "Requires=init-config.service"

0 commit comments

Comments
 (0)