On 16/10/2007, John Poelstra <poelstra redhat com> wrote: > I'm trying to script some disk-less network installs by copying vmlinuz and initrd.img to /boot and then modifying grub.conf. I cannot figure out one of the missing arguments for grubby. Strangely, I haven't found that much about grubby on google. > > > I would like the /boot/grub.conf entry to look like this using grubby: > > title Install F8 > root (hd0,0) > kernel /vmlinuz noipv6 ip=dhcp vnc vncconnect=192.168.5.52 > initrd /initrd.img > > This is the grubby command line I have working so far: > # grubby --add-kernel=/boot/vmlinuz --title="Install F8" --initrd=/boot/initrd.img --make-default --args="noipv6 ip=dhcp vnc vncconnect=192.168.5.52" > > QUESTION: How do I specify the "root (hd0,0)" line or have it get added by default? If I specify the argument "--copy-default" it inserts the "root (hd0,0)" line, but then adds a bunch of stuff I don't want to "kernel /vmlinuz" > grubby cannot create a grub.conf from scratch. If memory serves correctly, it used to be possible to specify the GRUB root device in the --add-kernel= and --initrd= args like --add-kernel="(hd0,0)/vmlinuz". Unfortunately, that here duplicates the (hd0,0) in the written config file, which looks like a bug in grubby. As a short-term work-around, you could --copy-default and remove unwanted kernel args in a second step: grubby --update-kernel=/boot/vmlinuz --remove-args="foo bar" -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list