瀏覽代碼

Skip mounting the /boot entry from /etc/fstab during OSMount.

Nashwan Azhari 7 年之前
父節點
當前提交
9ff07ab7e6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      coriolis/osmorphing/osmount/base.py

+ 2 - 2
coriolis/osmorphing/osmount/base.py

@@ -149,8 +149,8 @@ class BaseLinuxOSMountTools(BaseSSHOSMountTools):
         return lvm_paths
         return lvm_paths
 
 
     def _check_mount_fstab_partitions(
     def _check_mount_fstab_partitions(
-            self, os_root_dir, skip_mounts=["/"], skip_filesystems=["swap"],
-            mountable_lvm_devs=None):
+            self, os_root_dir, skip_mounts=["/", "/boot"],
+            skip_filesystems=["swap"], mountable_lvm_devs=None):
         """ Reads the contents of /etc/fstab from the VM's root directory and
         """ Reads the contents of /etc/fstab from the VM's root directory and
         tries to mount all clearly identified (by UUID or path) filesystems.
         tries to mount all clearly identified (by UUID or path) filesystems.
         Returns the list of the new directories which were mounted.
         Returns the list of the new directories which were mounted.