- updated TODO

- make a backup of grub.conf when dealing with it


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1318 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-02-27 12:00:14 +00:00
parent a9f3b8980d
commit efde4e19f3
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ TODO list:
Spritz:
- interface bug reporting interface (ahah)
- handle entropy exceptions
- add masking menu
- use availability bool to show masked packages and connect the masking menu
- Popularity feature / Your Ego service
+2
View File
@@ -6202,6 +6202,7 @@ class TriggerInterface:
if os.path.isfile(etpConst['systemroot']+"/boot/grub/grub.conf"):
# open in append
grub = open(etpConst['systemroot']+"/boot/grub/grub.conf","aw")
shutil.copy2(etpConst['systemroot']+"/boot/grub/grub.conf",etpConst['systemroot']+"/boot/grub/grub.conf.old.add")
# get boot dev
boot_dev = self.trigger_get_grub_boot_dev()
# test if entry has been already added
@@ -6248,6 +6249,7 @@ timeout=10
def trigger_remove_boot_grub(self, kernel,initramfs):
if os.path.isdir(etpConst['systemroot']+"/boot/grub") and os.path.isfile(etpConst['systemroot']+"/boot/grub/grub.conf"):
shutil.copy2(etpConst['systemroot']+"/boot/grub/grub.conf",etpConst['systemroot']+"/boot/grub/grub.conf.old.remove")
f = open(etpConst['systemroot']+"/boot/grub/grub.conf","r")
grub_conf = f.readlines()
f.close()