%general-entities; ]> 收尾工作 /etc/lfs-release /etc/lsb-release /etc/os-release 很好!现在新的 LFS 系统已经安装好了!我们祝愿您在全新的, 自定义的 Linux 系统中取得成功! 创建 systemd 需要的 /etc/os-release 文件: cat > /etc/os-release << "EOF" NAME="Linux From Scratch" VERSION="&versiond;" ID=lfs PRETTY_NAME="Linux From Scratch &versiond;" VERSION_CODENAME="<your name here>" EOF It may be a good idea to create an /etc/lfs-release file. By having this file, it is very easy for you (and for us if you need to ask for help at some point) to find out which LFS version is installed on the system. Create this file by running: echo &version; > /etc/lfs-release 最好创建一个 /etc/lfs-release 文件, 保持和非 systemd LFS 分支的一致性。 有了这个文件,您(和我们,如果您需要帮助的话) 能够容易地知道安装的 LFS 版本。运行以下命令创建该文件: echo &versiond; > /etc/lfs-release 另外,最好创建一个文件,根据 Linux Standards Base (LSB) 的规则显示系统状态。运行以下命令创建该文件: cat > /etc/lsb-release << "EOF" DISTRIB_ID="Linux From Scratch" DISTRIB_RELEASE="&version;" DISTRIB_CODENAME="<your name here>" DISTRIB_DESCRIPTION="Linux From Scratch" EOF cat > /etc/lsb-release << "EOF" DISTRIB_ID="Linux From Scratch" DISTRIB_RELEASE="&versiond;" DISTRIB_CODENAME="<your name here>" DISTRIB_DESCRIPTION="Linux From Scratch" EOF 您可以修改 'DISTRIB_CODENAME' 域,体现您的系统的独特性。