Code Monkey home page Code Monkey logo

Comments (1)

xlejo avatar xlejo commented on August 24, 2024

Reading the logs of rpm-ostree compose tree I saw this

+ mkdir -p /run
+ /usr/bin/bootupctl backend generate-update-metadata /
Generated update layout for EFI: grub2-efi-ia32-1:2.06-95.fc38.x86_64,grub2-efi-x64-1:2.06-95.fc38.x86_64,shim-ia32-15.6-2.x86_64,shim-x64-15.6-2.x86_64

After that, searching files from /usr/lib/bootupd/updates saw this

# find /usr/lib/bootupd/updates/ -type f
/usr/lib/bootupd/updates/EFI.json
/usr/lib/bootupd/updates/EFI/BOOT/BOOTIA32.EFI
/usr/lib/bootupd/updates/EFI/BOOT/BOOTX64.EFI
/usr/lib/bootupd/updates/EFI/BOOT/fbia32.efi
/usr/lib/bootupd/updates/EFI/BOOT/fbx64.efi
/usr/lib/bootupd/updates/EFI/fedora/BOOTIA32.CSV
/usr/lib/bootupd/updates/EFI/fedora/BOOTX64.CSV
/usr/lib/bootupd/updates/EFI/fedora/grubia32.efi
/usr/lib/bootupd/updates/EFI/fedora/grubx64.efi
/usr/lib/bootupd/updates/EFI/fedora/mmia32.efi
/usr/lib/bootupd/updates/EFI/fedora/mmx64.efi
/usr/lib/bootupd/updates/EFI/fedora/shim.efi
/usr/lib/bootupd/updates/EFI/fedora/shimia32.efi
/usr/lib/bootupd/updates/EFI/fedora/shimx64.efi

Reading a little the code, when run adopt_update the function apply_diff tries to delete files from EFI directory (/boot/efi) and replace it with the content of BOOTUPD_UPDATES_DIR(/usr/lib/bootupd/updates). I'm right?

It's feasible to only copy files from the architecture actually running? Or fail silently if those files doesn't exists?

from bootupd.

Related Issues (20)

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.