Skip to content

Commit bdb67dc

Browse files
authored
chore: Log var_crypt output to console (#10617)
We have found that `dev-mapper-var_crypt.device` sporadically fails to come up in system tests. Unfortunately, the GuestOS is often destroyed afterwards, and we can only see what's on the console.
1 parent 9b9b95a commit bdb67dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ function make_var_cryptsetup() {
153153
echo "KeyringMode=shared"
154154
echo "ExecStart=/opt/ic/bin/setup-var-encryption.sh /dev/disk/by-partuuid/${PARTUUID} /dev/disk/by-partuuid/${ALT_PARTUUID}"
155155
echo "ExecStop=/lib/systemd/systemd-cryptsetup detach var_crypt"
156+
echo "StandardOutput=journal+console"
157+
echo "StandardError=journal+console"
156158
}
157159

158160
CURRENT_SYSTEM=$(get_boot_arg_value dfinity.system)

0 commit comments

Comments
 (0)