mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +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
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…
Add table
Add a link
Reference in a new issue