#内核 #版本管理器 #systemd-boot #初始化 #朋友 #子命令 #安装

应用 systemd-boot-friend-rs

systemd-boot 的内核版本管理器

37 个版本

0.27.2 2024 年 8 月 18 日
0.27.1 2024 年 5 月 30 日
0.26.4 2024 年 5 月 27 日
0.26.1 2023 年 9 月 22 日
0.9.4 2021 年 9 月 15 日

#38 in Unix API

Download history 172/week @ 2024-05-16 352/week @ 2024-05-23 351/week @ 2024-05-30 17/week @ 2024-06-06 4/week @ 2024-06-13 2/week @ 2024-06-27 29/week @ 2024-07-04 153/week @ 2024-08-15

153 每月下载

MIT 许可证

67KB
1.5K SLoC

Rust 1K SLoC // 0.1% comments BASH 413 SLoC FreeMarker 176 SLoC Shell 7 SLoC // 0.2% comments

可能是您 systemd-boot 最亲密的朋友(希望如此)

systemd-boot 的内核版本管理器

用法

首先初始化 friend 和 systemd-boot,这还将安装最新内核到 systemd-boot 的指定路径。

sbf init

您还可以手动选择要注册为引导条目的内核。

sbf install-kernel

也支持子命令,您可以通过执行以下命令查找它们。

sbf --help

有关更多信息,请访问 https://wiki.aosc.io/software/systemd-boot-friend/

安装

cargo build --release
install -Dm755 target/release/systemd-boot-friend /usr/local/bin/systemd-boot-friend
PREFIX=/usr/local ./install-assets.sh

或从 crates.io

cargo install systemd-boot-friend-rs

依赖关系

构建

  • Rust w/ Cargo
  • C 编译器
  • make(当使用 GCC LTO 时,Clang 不需要)

运行时

  • Systemd

依赖关系

~10–20MB
~242K SLoC