gentoo

Gentoo system utilities.

deltona.gentoo.DEFAULT_ACTIVE_KERNEL_NAME

Default kernel symlink name.

deltona.gentoo.DEFAULT_KERNEL_LOCATION

Default kernel sources location.

deltona.gentoo.DEFAULT_MODULES_PATH

Default kernel modules location.

exception deltona.gentoo.InvalidActiveKernelSourcePath(source_path: StrPath)

Bases: Exception

Raised when the active kernel source path is not a symbolic link.

deltona.gentoo.clean_old_kernels_and_modules(path: StrPath = PosixPath('/usr/src'), modules_path: StrPath = PosixPath('/lib/modules'), active_kernel_name: str = 'linux') Iterator[str]

Remove inactive kernels and modules.

By default, removes old Linux sources from /usr/src.

Parameters:
path : StrPath

Location where kernel sources are installed. Defaults to /usr/src.

modules_path : StrPath

Location where modules get installed, such as /lib/modules.

active_kernel_name : str

Kernel name like 'linux'.

Yields:

str – Deleted path.

Raises: