The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/7004
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Fixes "root device not found" log error when shutting down VM. Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
From ff30db5cc23ff39fe96ca551a56a94f629043ca9 Mon Sep 17 00:00:00 2001 From: Thomas Parrott <thomas.parr...@canonical.com> Date: Tue, 10 Mar 2020 18:00:28 +0000 Subject: [PATCH] lxd/device/disk: Only unmounts non-root volumes attached Fixes "root device not found" error when shutting down VM. Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com> --- lxd/device/disk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxd/device/disk.go b/lxd/device/disk.go index 4521c5a6e3..ab6b5ac1c7 100644 --- a/lxd/device/disk.go +++ b/lxd/device/disk.go @@ -1097,8 +1097,8 @@ func (d *disk) stopVM() (*deviceConfig.RunConfig, error) { // postStop is run after the device is removed from the instance. func (d *disk) postStop() error { - // Check if pool-specific action should be taken to unmount custom volume. - if d.config["pool"] != "" { + // Check if pool-specific action should be taken to unmount custom volume disks. + if d.config["pool"] != "" && d.config["path"] != "/" { pool, err := storagePools.GetPoolByName(d.state, d.config["pool"]) if err != nil { return err
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel