Skip to content

Commit 13b30c4

Browse files
committed
osctld: always call ct.mount from RunConfiguration#mount
When Container#mount is not called, the class doesn't know that it is mounted, which might lead to Container#unmount bailing.
1 parent bd88b01 commit 13b30c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osctld/lib/osctld/container/run_configuration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def rootfs
110110
def mount(force: false)
111111
return if !force && mounted
112112

113-
dataset.mount(recursive: true)
114-
ct.mount if ct.dataset.name != dataset.name
113+
ct.mount
114+
dataset.mount(recursive: true) if ct.dataset.name != dataset.name
115115

116116
self.mounted = true
117117
end

0 commit comments

Comments
 (0)