Skip to content

Commit

Permalink
DLPX-81199 don't run zfs-mount service within upgrade container (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakash Surya authored Oct 9, 2023
1 parent c275a6c commit 4c68e8c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions files/common/lib/systemd/system/zfs-share.service.d/override.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# During upgrade verification, the root filesystem will be booted as a
# container using systemd-nspawn. We don't "sandbox" the container, so
# when zfs-share.service runs, it'll automatically mount all "domain0"
# mountpoints (or "dcenter" mountpoints for our DCenter systems). These
# mounts in the container can then impact software running outside of
# the container; e.g. "zfs destroy" can fail with EBUSY.
#
# Thus, to workaround this problem, we explicitly disable this service
# from running when inside of the container.
#
[Unit]
ConditionVirtualization=!container

0 comments on commit 4c68e8c

Please sign in to comment.