Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-61745

"dnf install --downloadonly" falsely returns a read-only error on read-only bootc system

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.6
    • rhel-9.6
    • dnf
    • dnf-4.14.0-20.el9
    • Yes
    • Moderate
    • rhel-sst-cs-software-management
    • ssg_core_services
    • 10
    • 12
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      dnf install -y --downloadonly --allowerasing --destdir /root/ "$1"

      Environment is rpm-ostree booted image [in this case RHIVOS]

      What is the impact of this issue to you?

      testing pipelines can no longer operate in the standard workflow; which downloads respective packages first (in order to rule out network issues for debugging more easily)

      Please provide the package NVR for which the bug is seen:

      dnf-4.14.0-18.el9.noarch

      How reproducible is this bug?:

      On the correct setup 100%

      Steps to reproduce

      1. Attempt dnf install --downloadonly (on ostree booted image)
      2.  
      3.  

      Expected results

      package downloads to passed --destdir without error. 

      Actual results

      # dnf install -y --downloadonly --allowerasing kernel-automotive-5.14.0-515.463.5376_1484856908.el9iv --destdir /var/roothome -v
      Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
      DNF version: 4.14.0
      cachedir: /var/cache/dnf
      User-Agent: constructed: 'libdnf (Red Hat Enterprise Linux 9.6; generic; Linux.x86_64)'
      repo: using cache for: cki-1484857138-x86_64
      cki-1484857138-x86_64: using metadata from Mon 07 Oct 2024 03:11:54 PM UTC.
      Last metadata expiration check: 16:54:42 ago on Mon 07 Oct 2024 08:33:10 PM UTC.
      --> Starting dependency resolution
      ---> Package kernel-automotive.x86_64 5.14.0-515.463.5376_1484856908.el9iv will be installed
      ---> Package kernel-automotive-core.x86_64 5.14.0-515.463.5376_1484856908.el9iv will be installed
      ---> Package kernel-automotive-modules.x86_64 5.14.0-515.463.5376_1484856908.el9iv will be installed
      ---> Package kernel-automotive-modules-core.x86_64 5.14.0-515.463.5376_1484856908.el9iv will be installed
      --> Finished dependency resolution
      Dependencies resolved.
      =======================================================================================================================================================================================================================
       Package                                                   Architecture                      Version                                                            Repository                                        Size
      =======================================================================================================================================================================================================================
      Installing:
       kernel-automotive                                         x86_64                            5.14.0-515.463.5376_1484856908.el9iv                               cki-1484857138-x86_64                            9.0 M
       kernel-automotive-core                                    x86_64                            5.14.0-515.463.5376_1484856908.el9iv                               cki-1484857138-x86_64                             24 M
       kernel-automotive-modules                                 x86_64                            5.14.0-515.463.5376_1484856908.el9iv                               cki-1484857138-x86_64                             14 M
       kernel-automotive-modules-core                            x86_64                            5.14.0-515.463.5376_1484856908.el9iv                               cki-1484857138-x86_64                             26 MTransaction Summary
      =======================================================================================================================================================================================================================
      Install  4 PackagesTotal size: 72 M
      Installed size: 84 M
      DNF will only download packages for the transaction.*** Error: system is configured to be read-only; for more
      *** information run `bootc --help`.Operation aborted.
      

      Additional Info:

      # ll /
      total 61
      lrwxrwxrwx.   1 root root    7 Jan  1  1970 bin -> usr/bin
      drwxr-xr-x.   7 root root 1024 Oct  7 20:31 boot
      drwxr-xr-x.  16 root root 3040 Oct  7 20:31 dev
      drwxr-xr-x.  98 root root 4096 Oct  7 20:31 etc
      lrwxrwxrwx.   1 root root    8 Jan  1  1970 home -> var/home
      lrwxrwxrwx.   1 root root    7 Jan  1  1970 lib -> usr/lib
      lrwxrwxrwx.   1 root root    9 Jan  1  1970 lib64 -> usr/lib64
      lrwxrwxrwx.   1 root root    9 Jan  1  1970 media -> run/media
      lrwxrwxrwx.   1 root root    7 Jan  1  1970 mnt -> var/mnt
      lrwxrwxrwx.   1 root root    7 Jan  1  1970 opt -> var/opt
      lrwxrwxrwx.   1 root root   14 Jan  1  1970 ostree -> sysroot/ostree
      dr-xr-xr-x. 245 root root    0 Oct  7 20:31 proc
      lrwxrwxrwx.   1 root root   12 Jan  1  1970 root -> var/roothome
      drwxr-xr-x.  32 root root  880 Oct  7 20:31 run
      lrwxrwxrwx.   1 root root    8 Jan  1  1970 sbin -> usr/sbin
      lrwxrwxrwx.   1 root root    7 Jan  1  1970 srv -> var/srv
      dr-xr-xr-x.  12 root root    0 Oct  7 20:31 sys
      drwxr-xr-x.   5 root root 4096 Oct  7 01:28 sysroot
      drwxrwxrwt.   9 root root  180 Oct  8 14:50 tmp
      drwxr-xr-x.  12 root root  224 Jan  1  1970 usr
      drwxr-xr-x.  24 root root 4096 Oct  7 20:31 var
       

              rhn-support-ppisar Petr Pisar
              rhn-support-bgrech Brian Grech
              packaging-team-maint packaging-team-maint
              Martin Banas Martin Banas
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: