Fedora 安装程序中“支持的 ISO:否”是什么意思?

Ben*_*rel 2 fedora iso installer-anaconda

我刚刚安装了 Fedora Workstation 30。启动时,我选择了“测试此媒体并启动 Fedora-Workstation-Live”。屏幕显示:

/dev/disk/by-label/Fedora-WS-Live-30-1-2:   b340a38cf5c1f09fdd769e259e449119
Fragment sums: 6dc04c22c2275... (a bit long to type)
Fragment count: 20
Supported ISO: no
Press [Esc] to abort check.
Checking: 025.5%
Run Code Online (Sandbox Code Playgroud)

并顺利完成检查。我在 Windows 10 上通过 Etcher (IIRC) 创建了 USB 介质。

安装没问题,但我对“Supported ISO: no”这一行感到有点困惑,尽管这个 ISO 直接来自 getfedora.org 网站。

“支持的 ISO:否”到底是什么意思?

Edw*_*ard 6

“测试此介质”选项实际上设置了rd.live.checkdracut 命令行选项,该选项进而触发安装程序Anaconda通过运行 systemdcheckisomd5一次性服务来测试安装介质。该服务的定义是:

[Unit]
Description=Media check on %f
DefaultDependencies=no
Before=shutdown.target

[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/bin/checkisomd5 --verbose %f
StandardInput=tty-force
StandardOutput=inherit
StandardError=inherit
TimeoutSec=0
Run Code Online (Sandbox Code Playgroud)

checkisomd5命令(参见此处isomd5sum)由Fedora 中的软件包提供:

[Unit]
Description=Media check on %f
DefaultDependencies=no
Before=shutdown.target

[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/bin/checkisomd5 --verbose %f
StandardInput=tty-force
StandardOutput=inherit
StandardError=inherit
TimeoutSec=0
Run Code Online (Sandbox Code Playgroud)

那么我们来检查一下来源:

[root@fedora30 /]# dnf provides checkisomd5
Last metadata expiration check: 0:02:27 ago on Tue 03 Sep 2019 09:31:46 AM CEST.
isomd5sum-1:1.2.3-5.fc30.x86_64 : Utilities for working with md5sum implanted in ISO images
Repo        : fedora
Matched from:
Filename    : /usr/bin/checkisomd5
Run Code Online (Sandbox Code Playgroud)

浏览源代码,您会发现一些对该supported标志的引用,这显然意味着:

Indicate that the image will be written to a "supported" media, such as pressed CD.  On Red Hat-based Anaconda installers, this bypasses the prompt to check the CD.
Run Code Online (Sandbox Code Playgroud)

这与https://linux.die.net/man/1/implantisomd5上的手册页一致。

因此,“支持的 ISO:否”意味着该映像在创建时未标记为“支持”标志。这将使 Anaconda 显示检查 CD 的提示。

  • 您可能应该添加一个结论。“因此,看到‘支持的 ISO:否’意味着……”。 (2认同)