Displaying 1 result from an estimated 1 matches for "device_map_conf".
2010 Oct 26
0
[PATCH node] add install.py
...grub_config_file = "%s/grub.conf" % grub_dir
+ GRUB_CONFIG_TEMPLATE = """
+default=0
+timeout=5
+hiddenmenu
+title oVirt Node (%(version)s-%(release)s)
+ root (hd0,%(partN)s)
+ kernel /vmlinuz0 %(bootparams)s
+ initrd /initrd0.img
+ """
+ device_map_conf = open(grub_dir + "/device.map\n", "w")
+ device_map_conf.write("(hd0) " + disk)
+ device_map_conf.close()
+ grub_files = ["stage1", "stage2", "e2fs_stage1_5"]
+ for file in grub_files:
+ os.system("cp /usr/share/gr...