[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] pygrub: parse xen module option in grub
2009/2/20 John Levon <levon@xxxxxxxxxxxxxxxxx>
thanks, john Sorry for I not think about Solaris carefully. Current run_grub() doesn't get any kernel args from user. We could add another argument for this function and return args back, whatever, it's hard for run_grub() to pass this args to GRUB() entry to let the user see it again. > why can't the user edit the grub entry? Yes, but if you could write it in configuration file, why do it by hand. Do you like the below modify? --- xen-unstable.hg.changeset_19232/tools/pygrub/src/pygrub 2009-02-20 12:07:34.000000000 +0800 +++ xen-unstable.hg/tools/pygrub/src/pygrub 2009-02-20 12:07:40.000000000 +0800 @@ -501,7 +501,7 @@ def get_entry_idx(cf, entry): return None -def run_grub(file, entry, fs): +def run_grub(file, entry, fs, arg): global g global sel @@ -534,7 +534,7 @@ def run_grub(file, entry, fs): if img.initrd: grubcfg["ramdisk"] = img.initrd[1] if img.args: - grubcfg["args"] = img.args + grubcfg["args"] = img.args + " " + arg return grubcfg @@ -659,7 +659,7 @@ if __name__ == "__main__": chosencfg = sniff_solaris(fs, incfg) if not chosencfg["kernel"]: - chosencfg = run_grub(file, entry, fs) + chosencfg = run_grub(file, entry, fs, incfg["args"]) data = ""> (tfd, bootcfg["kernel"]) = tempfile.mkstemp(prefix="boot_kernel.", _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |