我的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内核版本号中是什么意思?
发布于 2021-07-25 10:27:33
在构建时负责生成本地版本字符串的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 documentation )。
https://stackoverflow.com/questions/68514583
复制相似问题