This guide describes SUSE-specific details of the Multi-boot Clear Linux* OS with other operating systems tutorial.

  1. Start the SUSE installer and follow the prompts.

  2. At the Suggested Partitioning screen, choose Expert Partitioner. See Figure 1.

    ../../../../_images/multi-boot-sles-1.png

    Figure 1: SUSE: Suggested partitioning.

    Optional: Under Available Storage on Linux section, right-click the SUSE /home partition and delete it. In this example, it is /dev/sda8. See Figure 2.

    ../../../../_images/multi-boot-sles-2.png

    Figure 2: SUSE: Delete /home partition.

  3. Under Available Storage on Linux section, right-click the SUSE root partition and resize it. In this example, /dev/sda7 is resized to 45 GB. See Figure 3.

    ../../../../_images/multi-boot-sles-3.png

    Figure 3: SUSE: Resize root partition.

  4. Click Accept.

  5. Follow the remaining prompts to complete the SUSE installation.

  6. At this point, you cannot boot Clear Linux OS because Grub is the default boot loader. Follow these steps to make the Clear Linux OS Systemd-Boot the default boot loader and add SUSE as a boot option:

    1. Boot into SUSE.

    2. Log in.

    3. Locate the SUSE grub.cfg file in the /boot/grub2/ directory and look for the primary SUSE menuentry section. In Figure 4, the highlighted lines identify the kernel, the initrd filenames, the root partition UUID, and the additional parameters used. Use this information to create a new Systemd-Boot entry for SUSE.

      ../../../../_images/multi-boot-sles-4.png

      Figure 4: SUSE: grub.cfg file.

    4. Copy the kernel and the initrd file to the EFI partition.

      sudo cp /boot/vmlinuz-4.4.21-69-default /boot/efi
      
      sudo cp /boot/initrd-4.4.21-69-default /boot/efi
      
    5. Create a boot entry for SUSE. At a minimum, the file must contain these settings:

      Setting Description
      title Text to show in the boot menu
      linux Linux kernel image
      initrd initramfs image
      options Options to pass to the EFI program or kernel boot parameters

      See the systemd boot loader documentation for additional details.

      The options parameter must specify the root partition UUID and any additional parameters SUSE requires.

      Note

      The root partition UUID used below is unique to this example.

      sudoedit /boot/efi/loader/entries/suse.conf
      

      Add the following lines to the suse.conf file:

      title SUSE Linux Enterprise 12 SP2
      
      linux /vmlinuz-4.4.21-69-default
      
      initrd /initrd-4.4.21-69-default
      
      options root=UUID=b9e25e98-a644-4ac3-b955-ae32800ee350 ro
      resume=/dev/disk/by-uuid/6a50c032-1c1e-4b4a-b799-ca365bb10dc7
      splash=silent showopts crashkernel=109M,high
      crashkernel=72M,low
      
  7. Re-install Systemd-Boot to make it the default boot loader.

    sudo bootctl install --path /boot/efi
    

    Note

    If an older version of SUSE does not have the bootctl command, skip this step and see Restore the Clear Linux* OS boot loader to restore Systemd-Boot.

  8. Reboot.

If you want to install other OSes, refer to Multi-boot Clear Linux* OS with other operating systems for details.