linux-kernel - Linux 内核版本号中的 + 是什么意思?
问题描述
我的 NAS 上的 Linux 内核将自身报告为版本4.19.165+
/boot/bzImage: Linux kernel x86 boot executable bzImage, version 4.19.165+ (root@developer) #56 SMP Fri Apr 2 17:16:25 CST 2021, RO-rootFS, swap_dev 0x28, Normal VGA
+
Linux内核版本号是什么意思?
解决方案
这在构建时负责生成本地版本字符串的shell脚本中进行了描述,即scripts/setlocalversion
:
# scm version string if not at a tagged commit
if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then
# full scm version string
res="$res$(scm_version)"
else
# append a plus sign if the repository is not in a clean
# annotated or signed tagged state (as git describe only
# looks at signed or annotated tags - git tag -a/-s) and
# LOCALVERSION= is not specified
if test "${LOCALVERSION+set}" != "set"; then
scm=$(scm_version --short)
res="$res${scm:++}"
fi
fi
所以这很可能意味着在构建 Git 存储库时被脚本认为是“脏的”,即:未在签名或注释标签上签出(有关其含义,请参阅git-tag
文档)。
推荐阅读
- python - 为什么微调的 vgg-16 在相同的数据集上比微调的 inception-v3 表现更好?
- java - Liferay:当我们将动作一个 portlet 重定向到另一个 portlet 时,我们如何从表单中读取表单值?
- python - 仅在 Python 中被覆盖的类方法
- sql - SQL(特别是Oracle DB)中的“group by null”是什么意思?
- python - 通过 TeamViewer 运行 Kivy 应用程序的奇怪挂起问题
- python - AttributeError: 'torch.return_types.max' 对象没有属性 'dim' - Maxpooling Channel
- docker - Docker-compose - memsql 容器 - 后端连接问题
- azure-devops - 创建与 azure 资源管理器的服务连接时出错:azure 管道
- javascript - 单个客户端中的 SockJS 多个连接
- javascript - 如何在 React 中显示页面之前加载所有图像?