Article 6QNVP If the script for updating EFIStub is unsafe, can't you just make it safe?

If the script for updating EFIStub is unsafe, can't you just make it safe?

by
Weapon S
from LinuxQuestions.org on (#6QNVP)
I've always used EFIstub. Now I'm reading on Debian's page on the subject that the script may copy the wrong files, if multiple kernels get updated in an unexpected order. This is one of the scripts:
Code:#!/bin/bash
set -e

cp --verbose "$2" /boot/efi/EFI/Debian/initrd.imgIsn't it possible to add a check to the script? For my personal use a prompt would be sufficient; i.e. "Do you want to copy this bootimage to the EFI partition?". I can understand, if that becomes problematic for other users with lots of kernels installed. Ideally it would check which kernel the user wants to run. Would that be feasible?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments