mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
Build: use absolute path for /sbin/mke2fs
Distros like Debian and Ubuntu don't have /sbin in PATH, thus mke2fs is not found.
This commit is contained in:
parent
b6aae25244
commit
8e21e31b3a
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ if [ "$(uname -s)" = "OpenBSD" ]; then
|
|||
(echo "e 0"; echo 83; echo n; echo 0; echo "*"; echo "quit") | fdisk -e $VND
|
||||
mkfs.ext2 -I 128 -F /dev/${VND}i || die "couldn't create filesystem"
|
||||
else
|
||||
mke2fs -q -I 128 _disk_image || die "couldn't create filesystem"
|
||||
if [ -x /sbin/mke2fs ]; then
|
||||
/sbin/mke2fs -q -I 128 _disk_image || die "couldn't create filesystem"
|
||||
else
|
||||
mke2fs -q -I 128 _disk_image || die "couldn't create filesystem"
|
||||
fi
|
||||
fi
|
||||
echo "done"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue