Updating kernel versions when booting from rEFInd The 2019 Stack Overflow Developer Survey Results Are InGRUB2 and EFI - File not found?Booting a newly compiled Linux kernelAutomatically include N latest kernel versions in GRUB / GRUB2 menu on kernel upgradeI messed up my EFI boot, what do I do?How to reinstall grub to the EFI partition after initially installing it in Linux root. Do I have to start over?rEFInd not seeing Windows 8.1When do I need to specify add_efi_memmap as kernel argument in UEFI/EFI boot?Mint 17 via EFI stub on 32-bit MacBook, keyboard doesn't work; fine with Grub bootloaderHow do I fix “Kernel panic” error when booting USB stick?rEFind remove boot entries

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

What do hard-Brexiteers want with respect to the Irish border?

Spanish for "widget"

Understanding the implication of what "well-defined" means for the operation in quotient group

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

Are there any other methods to apply to solving simultaneous equations?

Why is Grand Jury testimony secret?

Should I use my personal or workplace e-mail when registering to external websites for work purpose?

Time travel alters history but people keep saying nothing's changed

Where does the "burst of radiance" from Holy Weapon originate?

On the insanity of kings as an argument against monarchy

Why could you hear an Amstrad CPC working?

Pristine Bit Checking

What is this 4-propeller plane?

How are circuits which use complex ICs normally simulated?

Inline version of a function returns different value then non-inline version

If the Wish spell is used to duplicate the effect of Simulacrum, are existing duplicates destroyed?

Is it possible for the two major parties in the UK to form a coalition with each other instead of a much smaller party?

Carnot-Caratheodory metric

"Riffle" two strings

Unbreakable Formation vs. Cry of the Carnarium

How long do I have to send payment?

JSON.serialize: is it possible to suppress null values of a map?

In microwave frequencies, do you use a circulator when you need a (near) perfect diode?



Updating kernel versions when booting from rEFInd



The 2019 Stack Overflow Developer Survey Results Are InGRUB2 and EFI - File not found?Booting a newly compiled Linux kernelAutomatically include N latest kernel versions in GRUB / GRUB2 menu on kernel upgradeI messed up my EFI boot, what do I do?How to reinstall grub to the EFI partition after initially installing it in Linux root. Do I have to start over?rEFInd not seeing Windows 8.1When do I need to specify add_efi_memmap as kernel argument in UEFI/EFI boot?Mint 17 via EFI stub on 32-bit MacBook, keyboard doesn't work; fine with Grub bootloaderHow do I fix “Kernel panic” error when booting USB stick?rEFind remove boot entries



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I'm booting from EFI using the awesome rEFInd bootloader. I've so far had to configure boot myself by manually copying over my EFI-compatible linux boot image to my EFI partition and writing a configuration file to define a rEFInd menu entry and link to the specific kernel image on the EFI volume.



GRUB, on the other hand, adds new kernel versions as they're installed and I always boot into the new kernel on next boot. It accomplishes this via the update-grub script, I believe.



Is there another script I can call into to automatically deploy new kernel images to my EFI partition and ensure they're available on next boot? I'd like to automate this process as much as possible so I'm always getting the latest kernel security updates.










share|improve this question
























  • I don't know this bootloader but you could have a look at wiki.archlinux.org/index.php/EFISTUB I guess the principle is the same (copying kernel to efi partition,...)

    – UnX
    Mar 31 '14 at 23:38











  • Is there something special about your filesystem? rEFInd can boot directly from /boot on most. I dont use it though - i just bind mount my kernel location on my efi system partition over /boot. In fact, i wrote the section on how to do so sometime last year in the wiki the linjed in the comment above. Either way - it's fairly easy.

    – mikeserv
    Apr 1 '14 at 2:23












  • Boot filesystem is btrfs, so yes, there's something special about my filesystem, so I have a separate partition in FAT for booting Windows and Linux.

    – Naftuli Kay
    Apr 1 '14 at 2:26











  • Refind can do btrfs - its not that special. I know how the esp setup works for the most part. Look in your refind installation directory for "drivers" find find the btrfs driver, and enabled it in refinds config. Might be a good idea look into how well it handles subvolumes - that one im not certain about. I never bothered because i keep my kernels on the esp and bind mouny their location over boot. Its very easy - all you need is /etc/fstab.

    – mikeserv
    Apr 1 '14 at 4:18












  • Oh, wow. Last time I checked, rEFInd didn't support btrfs, closest thing was ext4. Also, I hardly think that my system's EFI boot will be able to read a btrfs boot drive. Can you supply your configuration/setup in an answer? It's not clear exactly what you're doing.

    – Naftuli Kay
    Apr 1 '14 at 18:24

















4















I'm booting from EFI using the awesome rEFInd bootloader. I've so far had to configure boot myself by manually copying over my EFI-compatible linux boot image to my EFI partition and writing a configuration file to define a rEFInd menu entry and link to the specific kernel image on the EFI volume.



GRUB, on the other hand, adds new kernel versions as they're installed and I always boot into the new kernel on next boot. It accomplishes this via the update-grub script, I believe.



Is there another script I can call into to automatically deploy new kernel images to my EFI partition and ensure they're available on next boot? I'd like to automate this process as much as possible so I'm always getting the latest kernel security updates.










share|improve this question
























  • I don't know this bootloader but you could have a look at wiki.archlinux.org/index.php/EFISTUB I guess the principle is the same (copying kernel to efi partition,...)

    – UnX
    Mar 31 '14 at 23:38











  • Is there something special about your filesystem? rEFInd can boot directly from /boot on most. I dont use it though - i just bind mount my kernel location on my efi system partition over /boot. In fact, i wrote the section on how to do so sometime last year in the wiki the linjed in the comment above. Either way - it's fairly easy.

    – mikeserv
    Apr 1 '14 at 2:23












  • Boot filesystem is btrfs, so yes, there's something special about my filesystem, so I have a separate partition in FAT for booting Windows and Linux.

    – Naftuli Kay
    Apr 1 '14 at 2:26











  • Refind can do btrfs - its not that special. I know how the esp setup works for the most part. Look in your refind installation directory for "drivers" find find the btrfs driver, and enabled it in refinds config. Might be a good idea look into how well it handles subvolumes - that one im not certain about. I never bothered because i keep my kernels on the esp and bind mouny their location over boot. Its very easy - all you need is /etc/fstab.

    – mikeserv
    Apr 1 '14 at 4:18












  • Oh, wow. Last time I checked, rEFInd didn't support btrfs, closest thing was ext4. Also, I hardly think that my system's EFI boot will be able to read a btrfs boot drive. Can you supply your configuration/setup in an answer? It's not clear exactly what you're doing.

    – Naftuli Kay
    Apr 1 '14 at 18:24













4












4








4








I'm booting from EFI using the awesome rEFInd bootloader. I've so far had to configure boot myself by manually copying over my EFI-compatible linux boot image to my EFI partition and writing a configuration file to define a rEFInd menu entry and link to the specific kernel image on the EFI volume.



GRUB, on the other hand, adds new kernel versions as they're installed and I always boot into the new kernel on next boot. It accomplishes this via the update-grub script, I believe.



Is there another script I can call into to automatically deploy new kernel images to my EFI partition and ensure they're available on next boot? I'd like to automate this process as much as possible so I'm always getting the latest kernel security updates.










share|improve this question
















I'm booting from EFI using the awesome rEFInd bootloader. I've so far had to configure boot myself by manually copying over my EFI-compatible linux boot image to my EFI partition and writing a configuration file to define a rEFInd menu entry and link to the specific kernel image on the EFI volume.



GRUB, on the other hand, adds new kernel versions as they're installed and I always boot into the new kernel on next boot. It accomplishes this via the update-grub script, I believe.



Is there another script I can call into to automatically deploy new kernel images to my EFI partition and ensure they're available on next boot? I'd like to automate this process as much as possible so I'm always getting the latest kernel security updates.







linux ubuntu boot uefi refind






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 31 '14 at 23:00









Gilles

547k13011131628




547k13011131628










asked Mar 31 '14 at 22:47









Naftuli KayNaftuli Kay

12.8k57165257




12.8k57165257












  • I don't know this bootloader but you could have a look at wiki.archlinux.org/index.php/EFISTUB I guess the principle is the same (copying kernel to efi partition,...)

    – UnX
    Mar 31 '14 at 23:38











  • Is there something special about your filesystem? rEFInd can boot directly from /boot on most. I dont use it though - i just bind mount my kernel location on my efi system partition over /boot. In fact, i wrote the section on how to do so sometime last year in the wiki the linjed in the comment above. Either way - it's fairly easy.

    – mikeserv
    Apr 1 '14 at 2:23












  • Boot filesystem is btrfs, so yes, there's something special about my filesystem, so I have a separate partition in FAT for booting Windows and Linux.

    – Naftuli Kay
    Apr 1 '14 at 2:26











  • Refind can do btrfs - its not that special. I know how the esp setup works for the most part. Look in your refind installation directory for "drivers" find find the btrfs driver, and enabled it in refinds config. Might be a good idea look into how well it handles subvolumes - that one im not certain about. I never bothered because i keep my kernels on the esp and bind mouny their location over boot. Its very easy - all you need is /etc/fstab.

    – mikeserv
    Apr 1 '14 at 4:18












  • Oh, wow. Last time I checked, rEFInd didn't support btrfs, closest thing was ext4. Also, I hardly think that my system's EFI boot will be able to read a btrfs boot drive. Can you supply your configuration/setup in an answer? It's not clear exactly what you're doing.

    – Naftuli Kay
    Apr 1 '14 at 18:24

















  • I don't know this bootloader but you could have a look at wiki.archlinux.org/index.php/EFISTUB I guess the principle is the same (copying kernel to efi partition,...)

    – UnX
    Mar 31 '14 at 23:38











  • Is there something special about your filesystem? rEFInd can boot directly from /boot on most. I dont use it though - i just bind mount my kernel location on my efi system partition over /boot. In fact, i wrote the section on how to do so sometime last year in the wiki the linjed in the comment above. Either way - it's fairly easy.

    – mikeserv
    Apr 1 '14 at 2:23












  • Boot filesystem is btrfs, so yes, there's something special about my filesystem, so I have a separate partition in FAT for booting Windows and Linux.

    – Naftuli Kay
    Apr 1 '14 at 2:26











  • Refind can do btrfs - its not that special. I know how the esp setup works for the most part. Look in your refind installation directory for "drivers" find find the btrfs driver, and enabled it in refinds config. Might be a good idea look into how well it handles subvolumes - that one im not certain about. I never bothered because i keep my kernels on the esp and bind mouny their location over boot. Its very easy - all you need is /etc/fstab.

    – mikeserv
    Apr 1 '14 at 4:18












  • Oh, wow. Last time I checked, rEFInd didn't support btrfs, closest thing was ext4. Also, I hardly think that my system's EFI boot will be able to read a btrfs boot drive. Can you supply your configuration/setup in an answer? It's not clear exactly what you're doing.

    – Naftuli Kay
    Apr 1 '14 at 18:24
















I don't know this bootloader but you could have a look at wiki.archlinux.org/index.php/EFISTUB I guess the principle is the same (copying kernel to efi partition,...)

– UnX
Mar 31 '14 at 23:38





I don't know this bootloader but you could have a look at wiki.archlinux.org/index.php/EFISTUB I guess the principle is the same (copying kernel to efi partition,...)

– UnX
Mar 31 '14 at 23:38













Is there something special about your filesystem? rEFInd can boot directly from /boot on most. I dont use it though - i just bind mount my kernel location on my efi system partition over /boot. In fact, i wrote the section on how to do so sometime last year in the wiki the linjed in the comment above. Either way - it's fairly easy.

– mikeserv
Apr 1 '14 at 2:23






Is there something special about your filesystem? rEFInd can boot directly from /boot on most. I dont use it though - i just bind mount my kernel location on my efi system partition over /boot. In fact, i wrote the section on how to do so sometime last year in the wiki the linjed in the comment above. Either way - it's fairly easy.

– mikeserv
Apr 1 '14 at 2:23














Boot filesystem is btrfs, so yes, there's something special about my filesystem, so I have a separate partition in FAT for booting Windows and Linux.

– Naftuli Kay
Apr 1 '14 at 2:26





Boot filesystem is btrfs, so yes, there's something special about my filesystem, so I have a separate partition in FAT for booting Windows and Linux.

– Naftuli Kay
Apr 1 '14 at 2:26













Refind can do btrfs - its not that special. I know how the esp setup works for the most part. Look in your refind installation directory for "drivers" find find the btrfs driver, and enabled it in refinds config. Might be a good idea look into how well it handles subvolumes - that one im not certain about. I never bothered because i keep my kernels on the esp and bind mouny their location over boot. Its very easy - all you need is /etc/fstab.

– mikeserv
Apr 1 '14 at 4:18






Refind can do btrfs - its not that special. I know how the esp setup works for the most part. Look in your refind installation directory for "drivers" find find the btrfs driver, and enabled it in refinds config. Might be a good idea look into how well it handles subvolumes - that one im not certain about. I never bothered because i keep my kernels on the esp and bind mouny their location over boot. Its very easy - all you need is /etc/fstab.

– mikeserv
Apr 1 '14 at 4:18














Oh, wow. Last time I checked, rEFInd didn't support btrfs, closest thing was ext4. Also, I hardly think that my system's EFI boot will be able to read a btrfs boot drive. Can you supply your configuration/setup in an answer? It's not clear exactly what you're doing.

– Naftuli Kay
Apr 1 '14 at 18:24





Oh, wow. Last time I checked, rEFInd didn't support btrfs, closest thing was ext4. Also, I hardly think that my system's EFI boot will be able to read a btrfs boot drive. Can you supply your configuration/setup in an answer? It's not clear exactly what you're doing.

– Naftuli Kay
Apr 1 '14 at 18:24










2 Answers
2






active

oldest

votes


















0














This takes in-distro support to be done properly (I've introduced UEFI support into ALT Linux); one can workaround that by using symlinks and refind's filesystem drivers or piggyback some custom script into /etc/grub.d of course...



FWIW the most developed PE-COFF binary handling infrastructure I've seen so far has been done within PLD Linux.






share|improve this answer






























    0














    If you're using kernel .deb packages (i.e. either using your distribution's standard kernels, or compiling your own The Debian Way), then the kernel package installation process will run any scripts located in the appropriate sub-directories of /etc/kernel/. In particular, the /etc/kernel/postinst.d/ directory would be a good place for a script that places the new kernel within reach of rEFInd.



    Note also that reasonably recent versions of rEFInd can auto-detect Linux kernels, and use a refind_linux.conf file to define sets of kernel boot options in a generic way: rEFInd will by default offer the most recent kernel file detected, and use the first set of boot options with it. By pressing F2 (I think) you can get a sub-menu with the older kernel versions and the other boot option sets. Using this feature might allow you to get away with a simpler script.






    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f122476%2fupdating-kernel-versions-when-booting-from-refind%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      This takes in-distro support to be done properly (I've introduced UEFI support into ALT Linux); one can workaround that by using symlinks and refind's filesystem drivers or piggyback some custom script into /etc/grub.d of course...



      FWIW the most developed PE-COFF binary handling infrastructure I've seen so far has been done within PLD Linux.






      share|improve this answer



























        0














        This takes in-distro support to be done properly (I've introduced UEFI support into ALT Linux); one can workaround that by using symlinks and refind's filesystem drivers or piggyback some custom script into /etc/grub.d of course...



        FWIW the most developed PE-COFF binary handling infrastructure I've seen so far has been done within PLD Linux.






        share|improve this answer

























          0












          0








          0







          This takes in-distro support to be done properly (I've introduced UEFI support into ALT Linux); one can workaround that by using symlinks and refind's filesystem drivers or piggyback some custom script into /etc/grub.d of course...



          FWIW the most developed PE-COFF binary handling infrastructure I've seen so far has been done within PLD Linux.






          share|improve this answer













          This takes in-distro support to be done properly (I've introduced UEFI support into ALT Linux); one can workaround that by using symlinks and refind's filesystem drivers or piggyback some custom script into /etc/grub.d of course...



          FWIW the most developed PE-COFF binary handling infrastructure I've seen so far has been done within PLD Linux.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 1 '14 at 21:10









          Michael ShigorinMichael Shigorin

          78259




          78259























              0














              If you're using kernel .deb packages (i.e. either using your distribution's standard kernels, or compiling your own The Debian Way), then the kernel package installation process will run any scripts located in the appropriate sub-directories of /etc/kernel/. In particular, the /etc/kernel/postinst.d/ directory would be a good place for a script that places the new kernel within reach of rEFInd.



              Note also that reasonably recent versions of rEFInd can auto-detect Linux kernels, and use a refind_linux.conf file to define sets of kernel boot options in a generic way: rEFInd will by default offer the most recent kernel file detected, and use the first set of boot options with it. By pressing F2 (I think) you can get a sub-menu with the older kernel versions and the other boot option sets. Using this feature might allow you to get away with a simpler script.






              share|improve this answer



























                0














                If you're using kernel .deb packages (i.e. either using your distribution's standard kernels, or compiling your own The Debian Way), then the kernel package installation process will run any scripts located in the appropriate sub-directories of /etc/kernel/. In particular, the /etc/kernel/postinst.d/ directory would be a good place for a script that places the new kernel within reach of rEFInd.



                Note also that reasonably recent versions of rEFInd can auto-detect Linux kernels, and use a refind_linux.conf file to define sets of kernel boot options in a generic way: rEFInd will by default offer the most recent kernel file detected, and use the first set of boot options with it. By pressing F2 (I think) you can get a sub-menu with the older kernel versions and the other boot option sets. Using this feature might allow you to get away with a simpler script.






                share|improve this answer

























                  0












                  0








                  0







                  If you're using kernel .deb packages (i.e. either using your distribution's standard kernels, or compiling your own The Debian Way), then the kernel package installation process will run any scripts located in the appropriate sub-directories of /etc/kernel/. In particular, the /etc/kernel/postinst.d/ directory would be a good place for a script that places the new kernel within reach of rEFInd.



                  Note also that reasonably recent versions of rEFInd can auto-detect Linux kernels, and use a refind_linux.conf file to define sets of kernel boot options in a generic way: rEFInd will by default offer the most recent kernel file detected, and use the first set of boot options with it. By pressing F2 (I think) you can get a sub-menu with the older kernel versions and the other boot option sets. Using this feature might allow you to get away with a simpler script.






                  share|improve this answer













                  If you're using kernel .deb packages (i.e. either using your distribution's standard kernels, or compiling your own The Debian Way), then the kernel package installation process will run any scripts located in the appropriate sub-directories of /etc/kernel/. In particular, the /etc/kernel/postinst.d/ directory would be a good place for a script that places the new kernel within reach of rEFInd.



                  Note also that reasonably recent versions of rEFInd can auto-detect Linux kernels, and use a refind_linux.conf file to define sets of kernel boot options in a generic way: rEFInd will by default offer the most recent kernel file detected, and use the first set of boot options with it. By pressing F2 (I think) you can get a sub-menu with the older kernel versions and the other boot option sets. Using this feature might allow you to get away with a simpler script.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 24 at 12:54









                  telcoMtelcoM

                  20.8k12452




                  20.8k12452



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f122476%2fupdating-kernel-versions-when-booting-from-refind%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                      Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                      Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.