rpathsync / booty

Bootloader configuration python library used by Anaconda.

Clone this repository (size: 394.9 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/rpathsync/booty/
commit 380: 5ed3141f4891
parent 379: 42de00dcf9dd
child 381: 183f1c99e22c
Python keeps target list after for loop so we were getting duplicate entries. This reworks the logic so we avoid that. http://docs.python.org/ref/for.html defaultr0_78-1
Paul Nasrat / pnasrat
4 years ago

 NB: This is not the latest revision. For the latest view, go to tip.

View at rev
booty /
filename size last modified message
edd  
tests  
.cvsignore 31 B 8 years ago add _bootysys.c so that we can have chroot (why oh why does…
.hgignore 84 B 3 years ago Tailor preparing to convert repo by adding .hgignore
.hgtags 8.4 KB 3 years ago Added tag r0_77-1 for changeset 4e47ff39b449
Makefile 2.0 KB 4 years ago and fix the build
README 930 B 8 years ago Initial revision
TODO 331 B 5 years ago Add support for raid 1 /boot
bootloaderInfo.py 76.0 KB 4 years ago Python keeps target list after for loop so we were getting…
booty.py 12.4 KB 4 years ago remove duplicated code in butil.py, use stuff in rhpl
booty.spec 11.6 KB 4 years ago Python keeps target list after for loop so we were getting…
checkbootloader.py 7.2 KB 5 years ago tabs bad, mmkay
grubupdatetest.py 803 B 8 years ago Initial revision
lilo.py 9.5 KB 4 years ago Remove one other reference to butil.
py-compile 1.4 KB 8 years ago Initial revision

README

booty

This provides a simple interface for the creation of boot loader 
configuration files and the addition of stanzas to said configuration
files.

Much of the code is originally from either anaconda or up2date.


Although there's a lot of functionality here, a lot of it requires
mucking with object internals for now.  Also, there are some bits
which are still tied into anaconda infrastructure.  This will
eventually be fixed, but there's just not time right now.  The
following bits of API can be supported, though.  If you have anything
you'd like in here for your own purposes, let me know and I'll see
if I can add an API function that won't care about what goes on
underneath.


bootloader.installNewImages(kernelList, backupSuffix)
  where kernelList is a python list of (verRel,extraInfo) tuples, eg
        [("2.4.7-10smp", "smp"), ("2.4.9", None)]
  and backupPrefix is the suffix to use for backups (defaults to rpmsave)