瀏覽代碼

Fix call to _write_file_sudo()

Gabriel Adrian Samfira 6 年之前
父節點
當前提交
e1c8bf7d50
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      coriolis/osmorphing/debian.py

+ 1 - 1
coriolis/osmorphing/debian.py

@@ -54,7 +54,7 @@ class BaseDebianMorphingTools(base.BaseLinuxOSMorphingTools):
         cfg.append_to_option(
             "GRUB_CMDLINE_LINUX",
             {"opt_type": "key_val", "opt_key": "biosdevname", "opt_val": 0})
-        self._write_file_sudo(grub_cfg, cfg.dump())
+        self._write_file_sudo("etc/default/grub", cfg.dump())
         self._exec_cmd_chroot("/usr/sbin/update-grub")
 
     def _compose_interfaces_config(self, nics_info):