Skip to content

Commit a02c6f1

Browse files
bors[bot]Prakash Surya
andauthored
Merge #143
143: Disable "zfs-volume-wait" service inside container r=prakashsurya a=prakashsurya Co-authored-by: Prakash Surya <prakash.surya@delphix.com>
2 parents 2b3e7bd + 61c9b13 commit a02c6f1

File tree

1 file changed

+17
-0
lines changed
  • files/common/lib/systemd/system/zfs-volume-wait.service.d

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# During upgrade verification, the root filesystem will be booted as a
3+
# container using systemd-nspawn. When the zfs-volume-wait service runs
4+
# in this container, it will fail to complete in a timely manner,
5+
# resulting in a failure to start the upgrade container (the logic that
6+
# starts the container will timeout).
7+
#
8+
# The service fails to complete in a timely manner because "/dev" in the
9+
# container is not the same as "/dev" on the host. The ZVOL devices that
10+
# the service is waiting to appear in "/dev", will not appear within the
11+
# container (by design).
12+
#
13+
# Thus, to workaround this problem, we explicitly disable this service
14+
# from running when inside of the container.
15+
#
16+
[Unit]
17+
ConditionVirtualization=!container

0 commit comments

Comments
 (0)