On Sa, 11.10.25 13:17, Fedora Development ML ([email protected]) wrote:
> OSTree uses a symlink swapping technique on ext4 or xfs boot > partitions to achieve atomicity: 1) write the new kernel, 2) > assemble a new directory of BLS entries, and 3) point the loader > symlink to the new BLS directory using renameat2. Why is there a symlink used here? you can achieve the same via renameat2() on the dir itself? Note that in systemd's boot loader spec implementation we actively refuse using symlinks in XBOOTLDR for security reasons. Since ESP and XBOOTLDR cannot be authenticated we must be very careful when dealing with them, hence we will stop processing things whenever we hit a symlink as part of any of the boot loader spec defined paths. Lennart -- Lennart Poettering, Berlin -- _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
