Skip to content

Commit 02e69bc

Browse files
committed
Disable /tmp as tmpfs due backwards compatibility issues.
- Trixie mounts `/tmp` as a tmpfs by default (https://news.itsfoss.com/debian-13-tmp-mounting) Bug: b/458066799
1 parent 00e6e67 commit 02e69bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/baseimage/pkg/gce/scripts/scripts.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ echo "IMAGE STARTS WITH KERNEL: ${kmodver_begin}"
5858
sudo chroot /mnt/image /usr/bin/apt update
5959
sudo chroot /mnt/image /usr/bin/apt upgrade -y
6060
61+
# Disable systemd mounting tmpfs at /tmp due backwards compatibility issues.
62+
# TODO(b/458388172): Remove line if cvd no longer stores artifacts
63+
# in /tmp by default.
64+
sudo chroot /mnt/image /usr/bin/systemctl mask tmp.mount
65+
6166
# Avoid automatic updates during tests.
6267
# https://manpages.debian.org/trixie/unattended-upgrades/unattended-upgrade.8.en.html
6368
sudo chroot /mnt/image /usr/bin/apt purge -y unattended-upgrades

0 commit comments

Comments
 (0)