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:
ExceptionRaised 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:¶
- Yields:¶
str – Deleted path.
- Raises:¶
InvalidActiveKernelSourcePath – If the active kernel source path is not a symbolic link.
FileNotFoundError – If the active kernel source path does not exist.