coreos / layering-examples

Apache License 2.0
111 stars 24 forks source link

replace-kernel: dracut errors but successful? #57

Open plata opened 1 year ago

plata commented 1 year ago

When building replace-kernel:

STEP 2/3: RUN rpm-ostree cliwrap install-to-root /
Successfully enabled cliwrap for /
--> ad8993386757
STEP 3/3: RUN rpm-ostree override replace https://kojipkgs.fedoraproject.org//packages/kernel/6.0.10/300.fc37/x86_64/kernel-6.0.10-300.fc37.x86_64.rpm     https://kojipkgs.fedoraproject.org//packages/kernel/6.0.10/300.fc37/x86_64/kernel-core-6.0.10-300.fc37.x86_64.rpm     https://kojipkgs.fedoraproject.org//packages/kernel/6.0.10/300.fc37/x86_64/kernel-modules-6.0.10-300.fc37.x86_64.rpm &&     ostree container commit
Downloading https://kojipkgs.fedoraproject.org//packages/kernel/6.0.10/300.fc37/x86_64/kernel-6.0.10-300.fc37.x86_64.rpm...done
Downloading https://kojipkgs.fedoraproject.org//packages/kernel/6.0.10/300.fc37/x86_64/kernel-core-6.0.10-300.fc37.x86_64.rpm...done
Downloading https://kojipkgs.fedoraproject.org//packages/kernel/6.0.10/300.fc37/x86_64/kernel-modules-6.0.10-300.fc37.x86_64.rpm...done
Enabled rpm-md repositories: fedora-cisco-openh264 fedora-modular updates updates-modular fedora updates-archive
Updating metadata for 'fedora-cisco-openh264'...done
Updating metadata for 'fedora-modular'...done
Updating metadata for 'updates'...done
Updating metadata for 'updates-modular'...done
Updating metadata for 'fedora'...done
Updating metadata for 'updates-archive'...done
Importing rpm-md...done
rpm-md repo 'fedora-cisco-openh264'; generated: 2022-10-06T11:01:40Z solvables: 4
rpm-md repo 'fedora-modular'; generated: 2022-11-05T07:58:03Z solvables: 1454
rpm-md repo 'updates'; generated: 2023-05-01T01:21:13Z solvables: 30020
rpm-md repo 'updates-modular'; generated: 2023-04-10T00:16:15Z solvables: 1464
rpm-md repo 'fedora'; generated: 2022-11-05T08:04:38Z solvables: 66822
rpm-md repo 'updates-archive'; generated: 2023-05-01T01:56:29Z solvables: 40517
Resolving dependencies...done
Will download: 1 package (51.1?MB)
Downloading from 'updates-archive'...done
Installing 4 packages:
  kernel-6.0.10-300.fc37.x86_64 (@commandline)
  kernel-core-6.0.10-300.fc37.x86_64 (@commandline)
  kernel-modules-6.0.10-300.fc37.x86_64 (@commandline)
  kernel-uki-virt-6.2.8-200.fc37.x86_64 (updates-archive)
Downgrading: kernel-core;6.0.10-300.fc37;x86_64;local
Downgrading: kernel-modules;6.0.10-300.fc37;x86_64;local
Downgrading: kernel;6.0.10-300.fc37;x86_64;local
Installing: kernel-uki-virt-6.2.8-200.fc37.x86_64 (updates-archive)
Cleanup: kernel;6.2.8-200.fc37;x86_64;installed
Cleanup: kernel-modules;6.2.8-200.fc37;x86_64;installed
Cleanup: kernel-core;6.2.8-200.fc37;x86_64;installed
dracut: Executing: /usr/libexec/rpm-ostree/wrapped/dracut --no-hostonly --kver 6.0.10-300.fc37.x86_64 --reproducible -v --add ostree -f /tmp/.tmpJxju8J/initramfs.img
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: 62bluetooth: Could not find any command of '/usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd'!
dracut: dracut module 'pcsc' will not be installed, because command 'pcscd' could not be found!
dracut-install: ERROR: installing '/root'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.I5nKlJ/initramfs /root
dracut: *** Including module: bash ***
dracut: *** Including module: systemd ***
dracut: *** Including module: scsi-rules ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: systemd-sysusers ***
dracut: *** Including module: modsign ***
dracut: *** Including module: dbus-broker ***
dracut: *** Including module: dbus ***
dracut: *** Including module: coreos-sysctl ***
dracut: *** Including module: i18n ***
dracut: *** Including module: azure-udev-rules ***
dracut: *** Including module: afterburn ***
dracut: *** Including module: ignition ***
dracut: *** Including module: coreos-ignition ***
dracut: *** Including module: coreos-live ***
dracut: *** Including module: coreos-multipath ***
dracut: *** Including module: coreos-network ***
dracut: *** Including module: network-manager ***
dracut: *** Including module: ignition-conf ***
dracut: *** Including module: ignition-ostree ***
dracut: *** Including module: network ***
dracut: *** Including module: ifcfg ***
dracut: *** Including module: url-lib ***
dracut: *** Including module: coreos-kernel ***
dracut: *** Including module: ignition-conf-fcos ***
dracut: *** Including module: rdcore ***
dracut: *** Including module: clevis ***
dracut: *** Including module: clevis-pin-null ***
dracut: *** Including module: clevis-pin-sss ***
dracut: *** Including module: clevis-pin-tang ***
dracut: *** Including module: clevis-pin-tpm2 ***
dracut: *** Including module: coreos-agetty-workaround ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: kernel-network-modules ***
dracut: *** Including module: mdraid ***
dracut: Skipping udev rule: 64-md-raid.rules
dracut: *** Including module: multipath ***
dracut: Skipping udev rule: 40-multipath.rules
dracut: Skipping udev rule: 56-multipath.rules
dracut: *** Including module: nvdimm ***
dracut: *** Including module: qemu ***
dracut: *** Including module: qemu-net ***
dracut: *** Including module: cifs ***
dracut: *** Including module: lunmask ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: virtiofs ***
dracut: *** Including module: walinuxagent ***
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: ostree ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: emergency-shell-setup ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: journal-conf ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    2748
dracut: Linked:                   5 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 629 files
dracut: Saved:                    1.06 MiB
dracut: Duration:                 0.046433 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing AuthenticAMD.bin ***
dracut: *** Constructing GenuineIntel.bin ***
dracut: *** Store current command line parameters ***
dracut: *** Creating image file '/tmp/.tmpJxju8J/initramfs.img' ***
dracut: *** Creating initramfs image file '/tmp/.tmpJxju8J/initramfs.img' done ***
cp: cannot stat '/lib/modules/6.2.8-200.fc37.x86_64/vmlinuz-virt.efi': No such file or directory
COMMIT test-kernel
--> 2550a2cb9c5a
Successfully tagged localhost/test-kernel:latest

Is this the expected behavior? Why does the build succeed if the log shows errors?

Regardless of this, I can still boot the created image.

Generally:

Update: The issues with ublue-os were caused by kmods. I don't think it's a general rpm-ostree issue.

plata commented 11 months ago

@HuijingHei feel free to close this issue if you track it somewhere else.