Skip to content

Commit 4c68e8c

Browse files
author
Prakash Surya
authored
DLPX-81199 don't run zfs-mount service within upgrade container (#466)
1 parent c275a6c commit 4c68e8c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# During upgrade verification, the root filesystem will be booted as a
3+
# container using systemd-nspawn. We don't "sandbox" the container, so
4+
# when zfs-share.service runs, it'll automatically mount all "domain0"
5+
# mountpoints (or "dcenter" mountpoints for our DCenter systems). These
6+
# mounts in the container can then impact software running outside of
7+
# the container; e.g. "zfs destroy" can fail with EBUSY.
8+
#
9+
# Thus, to workaround this problem, we explicitly disable this service
10+
# from running when inside of the container.
11+
#
12+
[Unit]
13+
ConditionVirtualization=!container

0 commit comments

Comments
 (0)