Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

grubeditor: modify the grub.conf from the shell

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
Cagnulein
l33t
l33t
User avatar
Posts: 861
Joined: Thu Sep 18, 2003 3:39 pm
Location: Modena, Italy

grubeditor: modify the grub.conf from the shell

  • Quote

Post by Cagnulein » Thu Aug 19, 2004 11:00 am

grubeditor by "Cagnulein"
test version

Object
grubeditor is a tool that allows you to change the grub.conf directly from the shell. It usefull when you have a bash script that have to modify the grub.conf (a makekernel script :) ).

Usage
Help is avaiable launching:

Code: Select all

./grubeditor.py --help
there are 3 actions avaiable:
  • - create
    - modify
    - erase
a simple create command could be:

Code: Select all

./grubeditor.py -c --title=NewTitile --root=NewRoot --initrd=NewInitrd --kernel=kernel
this command create a new profile called newtitle at the end of the grub file

a simple modify command could be:

Code: Select all

./grubeditor.py --modify=1 --title=newTitle
this command modify the second profile chaning the title with newTitle

a simple erase command could be:

Code: Select all

./grubeditor.py --erase=1
this command erase the second profile in the grub.conf


Download

Rember: It's a test version!
anyway a backup file will be created on every execution of this program

P.S. Sorry for my poor english but I'm italian
Top
Post Reply
1 post • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy