Re: grubby help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux