Heads-up: If your /var or /var/tmp is mounted `noexec`, update to F40 might fail

In case your /var or /var/tmp is mounted as noexec, upgrading to F40 might fail. This issue just bit me and I also reported a bug: RHBZ#2274246.

As a workaround, before you hit the bug, you can follow these steps:

  1. in /etc/fstab, remove the noexec flag from /var or /var/tmp
  2. reboot
  3. do the system upgrade (now or later)

As a workaround, if you were bitten by the bug already (as I was), you can follow these steps:

  1. boot into the latest F39 kernel
  2. modify /etc/fstab, removing noexec flag from /var or /var/tmp
  3. reboot into the latest F39 kernel
  4. execute the dracut command line from the failed system upgrade (from dnf system-upgrade log)
  5. reboot into the now working F40 kernel