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

[RFE][leapp] add possibility to disable reboot after the FinalizationPhase

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • rhel-7.9.z
    • leapp-repository
    • None
    • Important
    • rhel-sst-upgrades
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • All
    • None

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

      For debugging purpose, an admin should be able to disable the requested reboot after the FinalizationPhase. Even for an actor, there is no way to influence the Flag in question.

      Please provide the package NVR for which bug is seen:

      leapp-0.16

      How reproducible:

      Always

      Steps to reproduce

      1. leapp upgrade
      2. reboot on the dedicated upgrade initramfs

      Expected results

      Do not reboot if /.noreboot is present (/sysroot/.noreboot from the initramfs).

      Actual results

      Reboot unconditionally if no error has been caught.

      Workaround

      # sed -i "N;s|# method.|# method.\n    import os.path\n    if os.path.isfile('/.noreboot'): return|" /usr/lib/python2.7/site-packages/leapp/utils/__init__.py 

              leapp-notifications leapp-notifications
              rhn-support-cbesson Christophe Besson
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: