Skip to content

Commit

Permalink
Add support for BIOS/extlinux setups
Browse files Browse the repository at this point in the history
  • Loading branch information
bstaletic committed Nov 29, 2024
1 parent 333bc24 commit 5f88598
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ecleankernel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from ecleankernel.bootloader.grub import GRUB
from ecleankernel.bootloader.grub2 import GRUB2
from ecleankernel.bootloader.lilo import LILO
from ecleankernel.bootloader.extlinux import EXTLINUX
from ecleankernel.bootloader.yaboot import Yaboot
from ecleankernel.bootloader.symlinks import Symlinks
from ecleankernel.layout.blspec import BlSpecLayout
Expand Down Expand Up @@ -63,7 +64,7 @@ def friendly_desc(self) -> str:
def main(argv: typing.List[str]) -> int:
kernel_parts = [x.value for x in KernelFileType.__members__.values()]
bootloaders: typing.List[typing.Type[Bootloader]] = [
LILO, GRUB2, GRUB, Yaboot, Symlinks]
LILO, GRUB2, GRUB, EXTLINUX, Yaboot, Symlinks]
layouts: typing.List[typing.Type[Layout]] = [
BlSpecLayout, StdLayout]
sorts = [MTimeSort, VersionSort]
Expand Down
11 changes: 11 additions & 0 deletions ecleankernel/bootloader/extlinux.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# (c) 2024 Boris Staletic <[email protected]>
# SPDX-License-Identifier: GPL-2.0-or-later

from ecleankernel.bootloader.lilo import LILO


class EXTLINUX(LILO):
name = "extlinux"
kernel_re = r"^\s*(:?LINUX|KERNEL)\s+(?P<path>.+)\s*$"
def_path = ("/boot/extlinux/extlinux.conf",
"/boot/syslinux/syslinux.cfg")

0 comments on commit 5f88598

Please sign in to comment.