Re: parsing grub's menu.lst

2008-11-17 Thread CarlFK
On Nov 17, 12:56 pm, Albert Hopkins <[EMAIL PROTECTED]> wrote: > On Mon, 2008-11-17 at 10:27 -0800, CarlFK wrote: > > I need some code that will read in grubs menu.lst file, and give me a > > list of dicts: > > > [{'title':'Ubuntu, kernel 2.6.15-23-686', > > 'root':'(hd0,0)', > > 'kernel':'/boot/vm

Re: parsing grub's menu.lst

2008-11-17 Thread Albert Hopkins
On Mon, 2008-11-17 at 10:27 -0800, CarlFK wrote: > I need some code that will read in grubs menu.lst file, and give me a > list of dicts: > > [{'title':'Ubuntu, kernel 2.6.15-23-686', > 'root':'(hd0,0)', > 'kernel':'/boot/vmlinuz-2.6.15-23-686 root=/dev/hda1 ro quiet splash', > 'initrd':'/boot/ini

parsing grub's menu.lst

2008-11-17 Thread CarlFK
I need some code that will read in grubs menu.lst file, and give me a list of dicts: [{'title':'Ubuntu, kernel 2.6.15-23-686', 'root':'(hd0,0)', 'kernel':'/boot/vmlinuz-2.6.15-23-686 root=/dev/hda1 ro quiet splash', 'initrd':'/boot/initrd.img-2.6.15-23-686', 'savedefault':'', 'boot':''}, {'title':