summaryrefslogtreecommitdiff
path: root/Meta/build-image-limine.sh
AgeCommit message (Collapse)Author
2022-12-20Meta: Tweak shell_include.shNico Weber
* `chmod -x` as it's for sourcing, not for executing * Remove run line, for the same reason * Rename it from .shell_include.sh to shell_include.sh, since e.g. `rg` doesn't search in hidden files by default No behavior change.
2022-12-14Meta: Factorize path resolutionLucas CHOLLET
This patch adds the `find_executable()` function that will hopefully find executables in a distro-agnostic way and that is (hopefully as well) easily upgradable. The function uses some bash functionalities. So, we now require bash for each script that includes `.shell_include.sh`.
2022-12-14Meta: Don't depend on sudo for privileged operationsBaitinq
We previously depended on sudo's specific -E flag to keep all the environment variables when performing a privilege escalation. We now incorporate the -E flag into the $SUDO variable, allowing for other privilege escalation binaries (such as doas) to be used (as long as they preserve the current environment variables).
2022-10-16Meta: Start moving common shell definitions into a common fileTim Schumacher
2022-10-16Meta: Define `SUDO` for all the image building scriptsTim Schumacher
Back when adding support for `pls` as a `sudo` replacement, `build-image-qemu` dynamically set the `SUDO` variable depending on what system it was running on and used the contents of that variable to call the correct elevation utility. During recent changes to the elevation error message, that usage of the variable was replicated across all of our scripts, but without also replicating the logic to set that variable in the first place. Add back the variable setting logic to all the other scripts to keep them from running into unset variables.
2022-10-15Meta: Don't tell to run script as root when that's not the actual errordemostanis
Before, and that was the cause of many confusion in #build-problems on Discord, the Meta/build-image-*.sh scripts would error out with the message "this script needs to run as root" while the actual error was unrelated.
2022-02-14Meta: Bump Limine version to 2.78.2czapek1337
2022-02-14Meta: Include the EFI executable in Limine imageczapek1337
2022-02-14Meta: Add support for the Limine bootloaderczapek1337