Results 1 to 6 of 6

Thread: Boot another OS after hibernate in Leap

  1. #1

    Lightbulb Boot another OS after hibernate in Leap

    Hi everybody,

    I want to boot another OS after hibernate, the same way I did in my Mageia,
    I followed the steps showed in the following link:
    https://en.opensuse.org/SDB:Suspend_...8workaround.29
    but it seems it doesn't apply to the LEAP,

    does anybody know what we should do about leap to do so?

    thanks a lot

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,639
    Blog Entries
    3

    Default Re: Boot another OS after hibernate in Leap

    As far as I know, Mageia uses grub1 (legacy grub), while Leap uses grub2.

    I think the next boot setting is saved in "/boot/grub2/grubenv".
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3
    Join Date
    Sep 2012
    Posts
    5,141

    Default Re: Boot another OS after hibernate in Leap

    Quote Originally Posted by lightblue View Post
    does anybody know what we should do about leap to do so?
    In Leap bootloader is configured directly from hibernate service. If you want to disable this configuration, copy /usr/lib/systemd/system/systemd-hibernate.service into /etc/systemd/system and edit it to remove lines
    Code:
    ExecStart=/usr/bin/systemd-sleep-grub pre
    ExecStopPost=/usr/bin/systemd-sleep-grub post
    Same for systemd-hybrid-sleep.service. These changes are persistent and retained on systemd update (but you may lose changes then, as usual need to compare newly installed file and your version).

  4. #4

    Default Re: Boot another OS after hibernate in Leap

    Quote Originally Posted by nrickert View Post
    As far as I know, Mageia uses grub1 (legacy grub), while Leap uses grub2.

    I think the next boot setting is saved in "/boot/grub2/grubenv".
    Hi nrickert and thanks for your reply,
    No, Mageia uses grub2 as well (since mageia 4),

    unfortunately i cannot find the settings on "/boot/grub2/grubenv"

    thanks amigo

  5. #5

    Default Re: Boot another OS after hibernate in Leap

    Quote Originally Posted by arvidjaar View Post
    In Leap bootloader is configured directly from hibernate service. If you want to disable this configuration, copy /usr/lib/systemd/system/systemd-hibernate.service into /etc/systemd/system and edit it to remove lines
    Code:
    ExecStart=/usr/bin/systemd-sleep-grub pre
    ExecStopPost=/usr/bin/systemd-sleep-grub post
    Same for systemd-hybrid-sleep.service. These changes are persistent and retained on systemd update (but you may lose changes then, as usual need to compare newly installed file and your version).
    Hi arvidjaar and thanks for your reply,

    Coooool, It's exactly what I asked for,
    I copied /usr/lib/systemd/system/systemd-hibernate.service into /etc/systemd/system and edited those lines and now it works like a charm
    I just didn't understand your last comment about doing the same for systemd-hybrid-sleep.service, Should i do the same for that, cuz it works just fine now?

    thanks a lot dear amigo

  6. #6

    Default Re: Boot another OS after hibernate in Leap

    Hi,
    How the same issue can be solved on Tumbleweed Snapshot20160525?
    Mentioned approach doesn't work
    There are not such lines in systemd-hibernate.service.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •