mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Meta: Look for e2fsck path on build-image-qemu.sh
Now we attempt to look for the path of e2fsck before checking if the path can be found in any of the predefined routes. This fixes e2fsck not being found on some "special" distros like NixOS. Related #13754
This commit is contained in:
parent
5556b27e38
commit
45e22dafb3
Notes:
sideshowbarker
2024-07-17 04:10:01 +09:00
Author: https://github.com/Baitinq Commit: https://github.com/SerenityOS/serenity/commit/45e22dafb3 Pull-request: https://github.com/SerenityOS/serenity/pull/15948 Reviewed-by: https://github.com/bgianfo Reviewed-by: https://github.com/timschumi ✅
1 changed files with 6 additions and 5 deletions
|
@ -50,13 +50,14 @@ if [ "$(uname -s)" = "Darwin" ]; then
|
|||
|
||||
E2FSCK="e2fsck"
|
||||
RESIZE2FS_PATH="resize2fs"
|
||||
elif [ "$(uname -s)" = "SerenityOS" ]; then
|
||||
E2FSCK="/usr/local/sbin/e2fsck"
|
||||
else
|
||||
E2FSCK="/usr/sbin/e2fsck"
|
||||
elif [ ! -f "$E2FSCK" ]; then
|
||||
E2FSCK="$(command -v e2fsck)"
|
||||
|
||||
if [ ! -f "$E2FSCK" ]; then
|
||||
E2FSCK=/sbin/e2fsck
|
||||
E2FSCK="/usr/sbin/e2fsck"
|
||||
if [ ! -f "$E2FSCK" ]; then
|
||||
E2FSCK="/sbin/e2fsck"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue