andreyv / sbupdate

Generate and sign kernel images for UEFI Secure Boot on Arch Linux
GNU General Public License v3.0
225 stars 20 forks source link

Add argument for alternative config file #53

Open lrustand opened 2 years ago

lrustand commented 2 years ago

Makes it possible to specify what config file to use at the command line.

andreyv commented 2 years ago

Hi,

What is your use case for this feature?

lrustand commented 2 years ago

I use it in combination with a pacman hook to take a btrfs snapshot before updating the kernel, and generating a unified kernel image with the old kernel and setting the command line to point to the snapshot, then after updating the kernel then sbupdate is run with the normal config for the new kernel