当前位置: 首页 > 工具软件 > Fedora CoreOS > 使用案例 >

Fedora CoreOS to CentOS7 问题汇总1

彭建业
2023-12-01


================================================================================
这在 Fedora CoreOS 上也没有找到相应的服务文件,暂时略过这个服务。

[FAILED] Failed to mount /var/mnt/workdir.
See 'systemctl status var-mnt-workdir.mount' for details.

完全没有搜到服务 var-mnt-workdir.mount 

================================================================================
如 https://github.com/coreos/fedora-coreos-pinger 中介绍的那样

Fedora CoreOS 中的遥测服务。

该项目的目标是通过收集诸如运行的 Fedora CoreOS 版本和使用的平台等信息,让 Fedora CoreOS 开发人员更好地了解发行版的使用方式。拥有此信息(以汇总形式)有助于更清晰地了解用户群,并了解优先开发和支持哪些平台、用例、架构等。有关更多上下文,请参阅 讨论此内容的 fedora-coreos-tracker 票证。

目前,fedora-coreos-pinger二进制文件是一个仅解析配置片段以检查配置是否正确的存根。首先发送存根的原因是允许用户在 Fedora CoreOS 预览期间为 pinger 提供有效的配置以及他们想要的设置(包括禁用信息报告)。然后,一旦稍后添加传输收集数据的功能,用户指定的配置将保留。

默认情况下,启用报告并在最低级别收集信息。由于该服务只是一个没有实现报告的存根,因此在上面链接的跟踪器票证中仍在讨论最低级别所需要的细节。在实施之前可以完全禁用报告,请参阅禁用报告。

所以,这个服务不需要。直接删除

[FAILED] Failed to start Telemetry service for Fedora CoreOS.
See 'systemctl status fedora-coreos-pinger.service' for details.

        [core@cosa-devsh ~]$ systemctl status fedora-coreos-pinger.service
        ● fedora-coreos-pinger.service - Telemetry service for Fedora CoreOS
        Loaded: loaded (/usr/lib/systemd/system/fedora-coreos-pinger.service; enable>
        Active: failed (Result: exit-code) since Fri 2021-12-03 03:36:41 UTC; 2min 7>
        Docs: https://github.com/coreos/fedora-coreos-pinger
        Process: 1208 ExecStart=/usr/bin/fedora-coreos-pinger (code=exited, status=1/>
        Main PID: 1208 (code=exited, status=1/FAILURE)

        Dec 03 03:36:40 localhost systemd[1]: Starting Telemetry service for Fedora Cor>
        Dec 03 03:36:41 localhost systemd[1]: fedora-coreos-pinger.service: Main proces>
        Dec 03 03:36:41 localhost systemd[1]: fedora-coreos-pinger.service: Failed with>
        Dec 03 03:36:41 localhost systemd[1]: Failed to start Telemetry service for Fed>

================================================================================
[FAILED] Failed to start OpenSSH server daemon.
See 'systemctl status sshd.service' for details.
        [core@cosa-devsh ~]$ systemctl status sshd.service
        ● sshd.service - OpenSSH server daemon
        Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset>
        Active: activating (auto-restart) (Result: exit-code) since Fri 2021-12-03 0>
        Docs: man:sshd(8)
                man:sshd_config(5)
        Process: 1241 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=255)
        Main PID: 1241 (code=exited, status=255)
        Tasks: 0 (limit: 5661)
        Memory: 0B
        CGroup: /system.slice/sshd.service

================================================================================
================================================================================
================================================================================
================================================================================
================================================================================

一系列mount失败

[FAILED] Failed to start OSTree Remount OS/ Bind Mounts.
See 'systemctl status ostree-remount.service' for details.
        bash-4.4# systemctl status ostree-remount.service
        ● ostree-remount.service - OSTree Remount OS/ Bind Mounts
        Loaded: loaded (/usr/lib/systemd/system/ostree-remount.service; enabled; ven>
        Active: failed (Result: exit-code) since Fri 2021-12-03 01:49:28 UTC; 6min a>
        Docs: man:ostree(1)
        Process: 1079 ExecStart=/usr/lib/ostree/ostree-remount (code=exited, status=1>
        Main PID: 1079 (code=exited, status=1/FAILURE)

        Dec 03 01:49:27 localhost ostree-remount[1079]: /usr/lib/ostree/ostree-remount:>
        Dec 03 01:49:27 localhost ostree-remount[1079]: /usr/lib/ostree/ostree-remount:>
        Dec 03 01:49:28 localhost systemd[1]: ostree-remount.service: Main process exit>
        Dec 03 01:49:28 localhost systemd[1]: ostree-remount.service: Failed with resul>
        Dec 03 01:49:28 localhost systemd[1]: Failed to start OSTree Remount OS/ Bind M>
        Dec 03 01:49:28 localhost systemd[1]: ostree-remount.service: Triggering OnFail>

ostree-remount.service 服务执行 /usr/lib/ostree/ostree-remount
属于 ostree-2020.7-4.el8.x86_64,我更新了 ostree 到 FC35 上的最新版本

ostree ostree-libs 2020.7-4.el8.x86_64 to 2021.6-1.el8.x86_64,但是还是报错

[  117.137458] ostree-remount[3287]: /usr/lib/ostree/ostree-remount: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /li)
[  117.148946] ostree-remount[3287]: /usr/lib/ostree/ostree-remount: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /li)
You are in emergency mode. AfterPress Enter for maintenance
(or press Control-D to continue): 
/usr/lib/ostree/ostree-remount: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /lib64/libgnutls.so.30)
/usr/lib/ostree/ostree-remount: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /lib64/libgnutls.so.30)

gnutls-3.7.2-2.el8.x86_64
        依赖 nettle 安装


================================================================================

[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.

================================================================================
================================================================================
================================================================================
================================================================================

        Starting Reload Configuration from the Real Root...
[    6.428185] EXT4-fs (vda3): mounted filesystem with ordered data mode. Opts: (null)
[    6.435167] systemd[1]: Reloading.
[    6.442332] coreos-boot-edit[879]: rdcore: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by rdcore)
[    6.450715] coreos-boot-edit[879]: rdcore: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by rdcore)
[    6.462224] coreos-boot-edit[879]: rdcore: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by rdcore)
[    6.493665] systemd[1]: coreos-boot-edit.service: Main process exited, code=exited, status=1/FAILURE
[    6.502300] systemd[1]: coreos-boot-edit.service: Failed with result 'exit-code'.
[FAILED[    6.508594] systemd[1]: Failed to start CoreOS Boot Edit.


[  OK  ] Stopped Generate New UUID For Boot Disk GPT.
[    7.249573] systemd[1]: ignition-ostree-transposefs-detect.service: Succeeded.
[    7.253950] systemd[1]: Stopped Ignition OSTree: Detect Partition Transposition.
[  OK  ] Stopped Ignition OSTree: Detect Partition Transposition.
[    7.264315] systemd[1]: Stopping udev Kernel Device Manager...
         Stopping udev Kernel Device Manager...
[    7.272420] systemd[1]: Requested transaction contradicts existing jobs: Transaction is destructive.
[    7.278903] systemd[1]: initrd-cleanup.service: Main process exited, code=exited, status=4/NOPERMISSION
[FAILED[    7.285481] systemctl[964]: Failed to start initrd-switch-root.target: Transaction is destructive.
] Failed to [    7.292320] systemctl[964]: See system logs and 'systemctl status initrd-switch-root.target' for details.
start Cleaning Up and Shutting Down Daemons.
[    7.299763] systemd[1]: initrd-cleanup.service: Failed with result 'exit-code'.
[    7.308122] systemd[1]: Failed to start Cleaning Up and Shutting Down Daemons.

Displaying logs from failed units: coreos-boot-edit.service
initrd-cleanup.service
-- Logs begin at Thu 2021-12-02 06:46:40 UTC, end at Thu 2021-12-02 06:46:46 UTC. --
Dec 02 06:46:45 systemd[1]: Starting CoreOS Boot Edit...
Dec 02 06:46:45 coreos-boot-edit[879]: rdcore: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by rdcore)
Dec 02 06:46:45 coreos-boot-edit[879]: rdcore: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by rdcore)
Dec 02 06:46:45 coreos-boot-edit[879]: rdcore: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by rdcore)
Dec 02 06:46:45 systemd[1]: coreos-boot-edit.service: Main process exited, code=exited, status=1/FAILURE
Dec 02 06:46:45 systemd[1]: coreos-boot-edit.service: Failed with result 'exit-code'.
Dec 02 06:46:45 systemd[1]: Failed to start CoreOS Boot Edit.
Dec 02 06:46:45 systemd[1]: coreos-boot-edit.service: Triggering OnFailure= dependencies.
-- Logs begin at Thu 2021-12-02 06:46:40 UTC, end at Thu 2021-12-02 06:46:46 UTC. --
Dec 02 06:46:45 systemd[1]: Starting Cleaning Up and Shutting Down Daemons...
Dec 02 06:46:46 systemd[1]: initrd-cleanup.service: Main process exited, code=exited, status=4/NOPERMISSION
Dec 02 06:46:46 systemctl[964]: Failed to start initrd-switch-root.target: Transaction is destructive.
Dec 02 06:46:46 systemctl[964]: See system logs and 'systemctl status initrd-switch-root.target' for details.
Dec 02 06:46:46 systemd[1]: initrd-cleanup.service: Failed with result 'exit-code'.
Dec 02 06:46:46 systemd[1]: Failed to start Cleaning Up and Shutting Down Daemons.
Dec 02 06:46:46 systemd[1]: initrd-cleanup.service: Triggering OnFailure= dependencies.
Press Enter for emergency shell or wait 5 minutes for reboot.                 

Generating "/run/initramfs/rdsosreport.txt"


========================================================================================

[    9.079188] coreos-installer-growfs[738]: xfs
[FAILED] Failed to start Grow root filesystem.
See 'systemctl status coreos-installer-growfs.service' for details.
[    9.090361] coreos-installer-growfs[738]: mount: /sysroot: /dev/vda4 already mounted on /sysroot/sysroot.
[DEPEND] Dependency failed for Initrd Default Target.
[    9.101484] systemd[1]: coreos-installer-growfs.service: Main process exited, code=exited, status=32/n/a
[  OK  ] Stopped target Ignition Complete.
[    9.111079] systemd[1]: coreos-installer-growfs.service: Failed with result 'exit-code'.
[    9.115928] systemd[1]: Failed to start Grow root filesystem.

重装 xfsprogs,但是还是会有错误

[    9.115796] coreos-installer-growfs[747]: xfs
[    9.118725] coreos-installer-growfs[747]: mount: /sysroot: /dev/vda4 already mounted on /sysroot/sysroot.
[FAILED[    9.125760] systemd[1]: coreos-installer-growfs.service: Main process exited, code=exited, status=32/n/a
] Failed to [    9.132872] systemd[1]: coreos-installer-growfs.service: Failed with result 'exit-code'.
start Grow root [    9.139078] systemd[1]: Failed to start Grow root filesystem.
filesystem.
See 'systemctl status coreos-installer-growfs.service' for details.
[    9.148752] systemd[1]: Dependency failed for Initrd Default Target.
[DEPEND] Dependency failed for Initrd Default Target.

错误日志如下
-- Logs begin at Thu 2021-12-02 13:04:45 UTC, end at Thu 2021-12-02 13:04:53 UTC. --
Dec 02 13:04:47 systemd[1]: Starting Grow root filesystem...
Dec 02 13:04:52 coreos-installer-growfs[747]: xfs
Dec 02 13:04:52 coreos-installer-growfs[747]: mount: /sysroot: /dev/vda4 already mounted on /sysroot/sysroot.
Dec 02 13:04:52 systemd[1]: coreos-installer-growfs.service: Main process exited, code=exited, status=32/n/a
Dec 02 13:04:52 systemd[1]: coreos-installer-growfs.service: Failed with result 'exit-code'.
Dec 02 13:04:52 systemd[1]: Failed to start Grow root filesystem.
-- Logs begin at Thu 2021-12-02 13:04:45 UTC, end at Thu 2021-12-02 13:04:53 UTC. --
Dec 02 13:04:52 systemd[1]: Starting Cleaning Up and Shutting Down Daemons...
Dec 02 13:04:53 systemd[1]: initrd-cleanup.service: Main process exited, code=exited, status=4/NOPERMISSION
Dec 02 13:04:53 systemctl[1003]: Failed to start initrd-switch-root.target: Transaction is destructive.
Dec 02 13:04:53 systemctl[1003]: See system logs and 'systemctl status initrd-switch-root.target' for details.
Dec 02 13:04:53 systemd[1]: initrd-cleanup.service: Failed with result 'exit-code'.
Dec 02 13:04:53 systemd[1]: Failed to start Cleaning Up and Shutting Down Daemons.
Dec 02 13:04:53 systemd[1]: initrd-cleanup.service: Triggering OnFailure= dependencies.
qemu-system-x86_64: terminating on signal 1 from pid 0 (/usr/bin/dumb-init)   
qemu-system-x86_64: tpm-emulator: Could not cleanly shutdown the TPM: Invalid argument
+ rc=143
+ set +x

======================================================

fwupd.spec
    No matching package to install: 'efivar-devel >= 33'
    No matching package to install: 'flashrom-devel >= 1.2-2'
    No matching package to install: 'gcab'
    No matching package to install: 'libcurl-devel >= 7.62.0'
    No matching package to install: 'libgcab1-devel'
    No matching package to install: 'libgusb-devel >= 0.3.5' OK
    No matching package to install: 'libjcat-devel >= 0.1.0' OK
    No matching package to install: 'libxmlb-devel >= 0.1.3' OK

fg: no job control问题参见下面链接
Changes/DynamicBuildRequires: https://fedoraproject.org/wiki/Changes/DynamicBuildRequires?rd=Changes/BuildRequires_Generators

afterburn
    + %generate_buildrequires
    /var/tmp/rpm-tmp.YFid8l: line 69: fg: no job control
    error: Bad exit status from /var/tmp/rpm-tmp.YFid8l (%prep)

coreos-installer
coreos-installer-bootinfra
    coreos-installer-0.11.0-vendor.tar.gz 需要从GitHub下载

ssh-key-dir
    %generate_buildrequires
    /var/tmp/rpm-tmp.ixCxTd: line 63: fg: no job control

zram-generator
    + %generate_buildrequires
    /var/tmp/rpm-tmp.OmC672: line 80: fg: no job control
    error: Bad exit status from /var/tmp/rpm-tmp.OmC672 (%prep)

fedora-coreos-pinger
    + %generate_buildrequires
    /var/tmp/rpm-tmp.n1w0ms: line 67: fg: no job control
    error: Bad exit status from /var/tmp/rpm-tmp.n1w0ms (%prep)

systemd-resolved

libeconf
    -- Set runtime path of "/home/rongtao/rpmbuild/BUILDROOT/libeconf-0.4.0-2.el8.x86_64/usr/bin/econftool" to ""
    CMake Error at x86_64-redhat-linux-gnu/doc/cmake_install.cmake:46 (file):
    file INSTALL cannot find
    "/home/rongtao/rpmbuild/BUILD/libeconf-0.4.0/x86_64-redhat-linux-gnu/doc/html":
    No such file or directory.
    Call Stack (most recent call first):
    x86_64-redhat-linux-gnu/cmake_install.cmake:62 (include)


    error: Bad exit status from /var/tmp/rpm-tmp.Jh20gB (%install)


    RPM build errors:
        Bad exit status from /var/tmp/rpm-tmp.Jh20gB (%install)
    
libuser
    Last metadata expiration check: 1:05:19 ago on Wed 01 Dec 2021 02:46:47 PM CST.
    RPM: error: line 60: Unknown tag: %python_provide: ERROR: python3-libuser not recognized.
    Failed to open: 'libuser.spec', not a valid spec file: can't parse specfile

    Error: Some packages could not be found.

libcbor
    No matching package to install: 'python3-breathe'

systemd
    Error: 
    Problem: package libidn2-devel-2.3.2-1.el7.x86_64 requires libidn2(x86-64) = 2.3.2-1.el7, but none of the providers can be installed
    - cannot install the best candidate for the job
    - nothing provides libunistring.so.0()(64bit) needed by libidn2-2.3.2-1.el7.x86_64

openssh
    No matching package to install: 'libfido2-devel'


libfido2-1.8.0-1.fc35.x86_64

libfido2
    libfido2-1.8.0-1.el8.x86_64 requires (u2f-hidraw-policy if systemd-udev)

mozjs78 
    和  mozjs60 重复


删除很多包后
==================================================================

成功的包
==================================================================

inih

shadow-utils-subid

catatonit

libfido2-devel
    rpm包生成成功,但是安装依赖 u2f-hidraw-policy(使用 yum 安装即可)

util-linux
    No matching package to install: 'libuser-devel'
    删除 spec中 libuser-devel require试试,成功,共生成以下rpm包
    util-linux-2.37.2-1.el8.x86_64.rpm
    util-linux-core-2.37.2-1.el8.x86_64.rpm`
    util-linux-core-debuginfo-2.37.2-1.el8.x86_64.rpm
    util-linux-debuginfo-2.37.2-1.el8.x86_64.rpm
    util-linux-debugsource-2.37.2-1.el8.x86_64.rpm
    util-linux-user-2.37.2-1.el8.x86_64.rpm
    util-linux-user-debuginfo-2.37.2-1.el8.x86_64.rpm
    libfdisk-2.37.2-1.el8.x86_64.rpm
    libfdisk-debuginfo-2.37.2-1.el8.x86_64.rpm
    libfdisk-devel-2.37.2-1.el8.x86_64.rpm
    libsmartcols-2.37.2-1.el8.x86_64.rpm
    libsmartcols-debuginfo-2.37.2-1.el8.x86_64.rpm
    libsmartcols-devel-2.37.2-1.el8.x86_64.rpm
    libmount-2.37.2-1.el8.x86_64.rpm
    libmount-debuginfo-2.37.2-1.el8.x86_64.rpm
    libmount-devel-2.37.2-1.el8.x86_64.rpm
    libblkid-2.37.2-1.el8.x86_64.rpm
    libblkid-debuginfo-2.37.2-1.el8.x86_64.rpm
    libblkid-devel-2.37.2-1.el8.x86_64.rpm
    libuuid-2.37.2-1.el8.x86_64.rpm
    libuuid-debuginfo-2.37.2-1.el8.x86_64.rpm
    libuuid-devel-2.37.2-1.el8.x86_64.rpm
    uuidd-2.37.2-1.el8.x86_64.rpm
    uuidd-debuginfo-2.37.2-1.el8.x86_64.rpm
    python3-libmount-2.37.2-1.el8.x86_64.rpm
    python3-libmount-debuginfo-2.37.2-1.el8.x86_64.rpm`

 类似资料: