Giter Club home page Giter Club logo

Comments (5)

maximbaz avatar maximbaz commented on June 1, 2024 1

(maybe some of them should be optional?)

Good question - my aim for this particular project always was to keep it very very minimal (and thus very opinionated), basically with a single code path, that everyone is testing. For such a critical security component, in the presence of existing bootloaders and customizable alternatives (example), I felt I wanted something with as little variation and cyclomatic complexity as possible, where every line of code counts.

What if some of the packages are reinstalled and not upgraded ?

This is interesting - reinstall is also considered an update:

Installations are considered an upgrade if the package or file is already present on the system regardless of whether the new package version is actually greater than the currently installed version. For Path triggers, this is true even if the file changes ownership from one package to another.

from arch-secure-boot.

maximbaz avatar maximbaz commented on June 1, 2024

I like the idea! On the initial installation you would probably get "Error: Secure Boot keys are not generated yet", but perhaps it's acceptable... Oooor what if we remove the Operation = Install though from the hook? All the targets are hard dependencies of arch-secure-boot anyway, so all we really care about if any of those files get updated on the system?

from arch-secure-boot.

ShellCode33 avatar ShellCode33 commented on June 1, 2024

What if some of the packages are reinstalled and not upgraded ? Or let's you already have arch-secure-boot installed and configured but after some time you decide to install fwupd ? I don't think removing Operation = Install is the way to go. The most resilient option might be to create a new hook only for arch-secure-boot that would only have Operation = Upgrade

EDIT: oh I didn't catch the fact that they are hard dependencies. (maybe some of them should be optional?) In that case I guess removing Operation = Install would work indeed

from arch-secure-boot.

ShellCode33 avatar ShellCode33 commented on June 1, 2024

So apparently FYI, the update hook is being triggered as soon as it is being installed:

(1/1) upgrading arch-secure-boot                                            
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Generating signed EFI boot files
Generating EFI images...
Signing Unsigned original image

I was expecting this not to be triggered until the next update, but that's nice

from arch-secure-boot.

maximbaz avatar maximbaz commented on June 1, 2024

That's interesting, very helpful for our case 😁

from arch-secure-boot.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.