View previous topic :: View next topic |
Author |
Message |
gsfgf Veteran
Joined: 08 May 2002 Posts: 1266
|
Posted: Sat Nov 30, 2002 8:19 pm Post subject: grub command line ops |
|
|
i'm writing a scripted gentoo isntal, and neet to set up grub
does
Code: |
grub --boot-drive=0x0
grub-install /dev/hda
|
do the same thing as
Code: |
grub> root (hd0,0)
grub> setup (hd0)
|
? _________________ Aim:gsfgf0 |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Sun Dec 01, 2002 12:00 am Post subject: |
|
|
I don't think that works, but well INAE.
This probably will:
Code: |
#!/bin/bash
grub << EOF
root (hd0,0)
setup (hd0)
EOF
|
Cya lX. _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
|
gsfgf Veteran
Joined: 08 May 2002 Posts: 1266
|
Posted: Sun Dec 01, 2002 12:04 am Post subject: |
|
|
i'll try that.
do i need to put quit at the end.
also how would i pass that with the system() functio in C? _________________ Aim:gsfgf0 |
|
Back to top |
|
|
|