mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Added support elilo and grub boot loader
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
bf20898f69
commit
f09893edaf
2 changed files with 16 additions and 6 deletions
|
@ -1,7 +1,8 @@
|
||||||
3.3.9 - 01/12/2018
|
3.3.9 - 30/12/2018
|
||||||
Updated:
|
Updated:
|
||||||
- Readme file and added example text file
|
- Readme file and added example text file
|
||||||
|
Added:
|
||||||
|
- Support elilo and grub upgrade boot loader after kernel upgrade
|
||||||
|
|
||||||
3.3.8 - 09/06/2018
|
3.3.8 - 09/06/2018
|
||||||
Fixed:
|
Fixed:
|
||||||
|
|
|
@ -208,7 +208,8 @@ class Patches(object):
|
||||||
Upgrade packages
|
Upgrade packages
|
||||||
"""
|
"""
|
||||||
for pkg in self.upgrade_all:
|
for pkg in self.upgrade_all:
|
||||||
check_md5(pkg_checksum(pkg, "slack_patches"), self.patch_path + pkg)
|
check_md5(pkg_checksum(pkg, "slack_patches"),
|
||||||
|
self.patch_path + pkg)
|
||||||
pkg_ver = "{0}-{1}".format(split_package(pkg)[0],
|
pkg_ver = "{0}-{1}".format(split_package(pkg)[0],
|
||||||
split_package(pkg)[1])
|
split_package(pkg)[1])
|
||||||
if find_package(split_package(pkg)[0] + self.meta.sp,
|
if find_package(split_package(pkg)[0] + self.meta.sp,
|
||||||
|
@ -239,19 +240,27 @@ class Patches(object):
|
||||||
else:
|
else:
|
||||||
print("")
|
print("")
|
||||||
self.msg.template(78)
|
self.msg.template(78)
|
||||||
print("| {0}*** HIGHLY recommended reinstall 'LILO' "
|
print("| {0}*** HIGHLY recommended reinstall boot loader "
|
||||||
"***{1}".format(self.meta.color["RED"],
|
"***{1}".format(self.meta.color["RED"],
|
||||||
self.meta.color["ENDC"]))
|
self.meta.color["ENDC"]))
|
||||||
|
print("| L=lilo / E=elilo / G=grub")
|
||||||
self.msg.template(78)
|
self.msg.template(78)
|
||||||
try:
|
try:
|
||||||
answer = raw_input("\nThe kernel has been upgraded, "
|
answer = raw_input("\nThe kernel has been upgraded, "
|
||||||
"reinstall `LILO` [y/N]? ")
|
"reinstall boot loader [L/E/G]? ")
|
||||||
except EOFError:
|
except EOFError:
|
||||||
print("")
|
print("")
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
if answer in ["y", "Y"]:
|
if answer in ["L"]:
|
||||||
subprocess.call("lilo", shell=True)
|
subprocess.call("lilo", shell=True)
|
||||||
break
|
break
|
||||||
|
elif answer in ["E"]:
|
||||||
|
subprocess.call("eliloconfig", shell=True)
|
||||||
|
break
|
||||||
|
elif answer in ["G"]:
|
||||||
|
subprocess.call("grub-mkconfig -o /boot/grub/grub.cfg",
|
||||||
|
shell=True)
|
||||||
|
break
|
||||||
|
|
||||||
def slackpkg_update(self):
|
def slackpkg_update(self):
|
||||||
"""This replace slackpkg ChangeLog.txt file with new
|
"""This replace slackpkg ChangeLog.txt file with new
|
||||||
|
|
Loading…
Reference in a new issue