Page 7 of 7 FirstFirst ... 567
Results 61 to 67 of 67

Thread: How to have a custom UEFI grub menu for a multiboot system

  1. #61
    Join Date
    Jul 2018
    Location
    US
    Posts
    72

    Default Re: How to have a custom UEFI grub menu for a multiboot system

    Quote Originally Posted by mrmazda View Post
    I've been using *SUSE for far more than a decade than I can remember. I've never seen a new kernel installation not produce symlinks vmlinuz and initrd for the newest kernel and initrd.
    I realized why there were no symlinks. I've been installing all kinds of different Linux distros and when you initially install it, there are no symlinks because grub is using the direct link to the kernel.

    But, when the 1st new kernel gets installed, it creates the symlinks. That is why I got confused for a minute.

    BTW, I have both Debian Stretch and Buster installed and did not use the swap file during installation.
    When I booted up it mounted the swap partition even though it was not in the /etc/fstab file. But, I added it immediately after installation.
    Intel Core i7-4770K, NVIDIA GeForce GTX 980 Ti, Mobo: ASUSTeK, model: Z87-K, Mem: 16GB, Sound Blaster Audigy Series, HD: Western Digital 1TB SSD, OCZ 500GB SSD and a Toshiba 2TB SATA HD

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

    Default Re: How to have a custom UEFI grub menu for a multiboot system

    Quote Originally Posted by Cavsfan View Post
    BTW, I have both Debian Stretch and Buster installed and did not use the swap file during installation.
    When I booted up it mounted the swap partition even though it was not in the /etc/fstab file.
    Yes, some systems do that. I haven't looked closely, but I assume that they create a systemd mount unit to mount swap.
    openSUSE Leap 15.1; KDE Plasma 5;

  3. #63
    Join Date
    Jul 2018
    Location
    US
    Posts
    72

    Default Re: How to have a custom UEFI grub menu for a multiboot system

    Quote Originally Posted by Cavsfan View Post
    BTW, I have both Debian Stretch and Buster installed and did not use the swap file during installation.
    When I booted up it mounted the swap partition even though it was not in the /etc/fstab file. But, I added it immediately after installation.
    Quote Originally Posted by nrickert View Post
    Yes, some systems do that. I haven't looked closely, but I assume that they create a systemd mount unit to mount swap.
    I've since deleted Stretch, way too boring and it could not find npm to install a npm-server for Visual Studio Code. Only distro I have ever seen that did that/ or didn't do that depending on how you look at it.
    I've since made Buster into Testing and Installed Mageia 7 where Stretch was. Both have working Fusion Icons so that is a +1 for me.

    Also, while I was installing one of the 2, I first tried using 50GB of another 480GB SSD for /, selecting my swap file but, did not check the format box.
    However it still wanted to format the swap, so I started over and told it not to use a swap, it still wanted to format my swap.

    So, apparently under that scenario you cannot prevent your swap file from being formatted no matter what you do. I ended up putting it on my 1TB SSD which still has lots of room and it didn't format the swap.
    Intel Core i7-4770K, NVIDIA GeForce GTX 980 Ti, Mobo: ASUSTeK, model: Z87-K, Mem: 16GB, Sound Blaster Audigy Series, HD: Western Digital 1TB SSD, OCZ 500GB SSD and a Toshiba 2TB SATA HD

  4. #64
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,187
    Blog Entries
    3

    Default Re: How to have a custom UEFI grub menu for a multiboot system

    Quote Originally Posted by Cavsfan View Post
    However it still wanted to format the swap, so I started over and told it not to use a swap, it still wanted to format my swap.
    I recently installed KDE Neon (which is ubuntu 18.04 + latest KDE). The installer said that it was going to format swap. And there was no way that I could tell it otherwise. But the UUID of swap did not change. So either it did not format it, or it formatted using the "-U" option (to "mkswap") to specify that the same UUID be used.
    openSUSE Leap 15.1; KDE Plasma 5;

  5. #65
    Join Date
    Jul 2018
    Location
    US
    Posts
    72

    Default Re: How to have a custom UEFI grub menu for a multiboot system

    Quote Originally Posted by nrickert View Post
    I recently installed KDE Neon (which is ubuntu 18.04 + latest KDE). The installer said that it was going to format swap. And there was no way that I could tell it otherwise. But the UUID of swap did not change. So either it did not format it, or it formatted using the "-U" option (to "mkswap") to specify that the same UUID be used.
    Interesting... I've never seen it say it was going to format swap and not do it.

    I just did a fresh install of openSUSE TW and if I told it to use swap it was going to format it even though I did not check the format box. So, I just didn't use swap.
    It formatted just the / partition but, when I booted up it was using swap even though it was not in fstab. I added it, making sure swap was on via gparted and it was. I always need to add my /Media partition to fstab anyway so I just did that while in there.

    If anyone is mutibooting with Fedora 30, since Fedora does not ever create symlinks for the kernel, I have a script that runs when the new kernel is created and creates /boot/initrd.img and /boot/vmlinuz for easy custom booting.
    The one I was using on Fedora 28 and 29 did not work on Fedora 30 but, I finally got it working on 30.
    Here's the script and it needs to be saved as 52-symlink-kernel.
    Code:
    #!/bin/bash
    #
    
    # We're passed the kernel version being installed
    KERNEL_VERSION="$1"
    
    ln -s -f "initramfs-"${1}".img" /boot/initrd.img
    
    ln -s -f "vmlinuz-"${1} /boot/vmlinuz
    
    echo "   SUCCESS: symlink initrd.img created for "initramfs-"${1}".img"" >&2
    echo "   SUCCESS: symlink vmlinuz created for "vmlinuz-"${1}" >&2
    
    exit 0
    If it's in your home directory, you would first make it executable sudo chmod +x 52-symlink-kernel.
    Then to install it you would use this command:
    Code:
    sudo install 52-symlink-kernel /etc/kernel/postinst.d/52-symlink-kernel
    Then in the terminal output of a new kernel installation you will see the SUCCESS lines. You can also check in /boot with ls -lA and verify that they are symlinked correctly.
    Intel Core i7-4770K, NVIDIA GeForce GTX 980 Ti, Mobo: ASUSTeK, model: Z87-K, Mem: 16GB, Sound Blaster Audigy Series, HD: Western Digital 1TB SSD, OCZ 500GB SSD and a Toshiba 2TB SATA HD

  6. #66
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,586

    Default Re: How to have a custom UEFI grub menu for a multiboot system

    Swap is mounted by systemd in the 15.1 and TW now. Don't know why the change. Like the change of not having a separate home partition by default. Not certain either is a great idea.

  7. #67
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,483

    Default Re: How to have a custom UEFI grub menu for a multiboot system

    Quote Originally Posted by Cavsfan View Post
    Code:
    #!/bin/bash
    #
    
    # We're passed the kernel version being installed
    KERNEL_VERSION="$1"
    
    ln -s -f "initramfs-"${1}".img" /boot/initrd.img
    
    ln -s -f "vmlinuz-"${1} /boot/vmlinuz
    
    echo "   SUCCESS: symlink initrd.img created for "initramfs-"${1}".img"" >&2
    echo "   SUCCESS: symlink vmlinuz created for "vmlinuz-"${1}" >&2
    
    exit 0
    Without modification, it would would be inadequate here, as I keep multiple kernels:
    Code:
    # ls -Ggh vml* ini*
     40M Mar 11 07:48 initramfs-0-rescue-11352b14084942c18a21a5586db0b5b3.img
     16M Mar 11 04:40 initramfs-4.20.14-200.fc29.x86_64.img
     16M Mar 11 07:48 initramfs-5.0.0-0.rc8.git0.1.fc30.x86_64.img
     16M May  2 23:08 initramfs-5.0.9-301.fc30.x86_64.img
      35 May  2 23:18 initrd -> initramfs-5.0.9-301.fc30.x86_64.img
      35 May  2 23:17 initrd-cur -> initramfs-5.0.9-301.fc30.x86_64.img
      44 Mar 11 08:52 initrd-prv -> initramfs-5.0.0-0.rc8.git0.1.fc30.x86_64.img
      37 Mar 11 04:49 initrd-prv2 -> initramfs-4.20.14-200.fc29.x86_64.img
      55 Jun 20  2015 initrd-rescue -> initramfs-0-rescue-11352b14084942c18a21a5586db0b5b3.img
      29 May  2 23:18 vmlinuz -> vmlinuz-5.0.9-301.fc30.x86_64
    8.5M Mar 11 07:48 vmlinuz-0-rescue-11352b14084942c18a21a5586db0b5b3
    8.4M Mar  5 15:19 vmlinuz-4.20.14-200.fc29.x86_64
    8.5M Feb 26 05:49 vmlinuz-5.0.0-0.rc8.git0.1.fc30.x86_64
    8.5M Apr 23 20:11 vmlinuz-5.0.9-301.fc30.x86_64
      29 May  2 23:17 vmlinuz-cur -> vmlinuz-5.0.9-301.fc30.x86_64
      38 Mar 11 08:52 vmlinuz-prv -> vmlinuz-5.0.0-0.rc8.git0.1.fc30.x86_64
      31 Mar 11 04:49 vmlinuz-prv2 -> vmlinuz-4.20.14-200.fc29.x86_64
      49 Jun 20  2015 vmlinuz-rescue -> vmlinuz-0-rescue-11352b14084942c18a21a5586db0b5b3
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

Page 7 of 7 FirstFirst ... 567

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
  •