mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
Meta: Fix mke2fs
on MacOS
Use `Meta/.shell_include.sh` to find the `mke2fs` executable.
This commit is contained in:
parent
f2336d0144
commit
74927ac76d
2 changed files with 4 additions and 8 deletions
|
@ -119,11 +119,7 @@ if [ $USE_EXISTING -ne 1 ]; then
|
|||
(echo "e 0"; echo 83; echo n; echo 0; echo "*"; echo "quit") | fdisk -e "$VND"
|
||||
newfs_ext2fs -D $INODE_SIZE -n $INODE_COUNT "/dev/r${VND}i" || die "could not create filesystem"
|
||||
else
|
||||
if [ -x /sbin/mke2fs ]; then
|
||||
/sbin/mke2fs -q -I $INODE_SIZE -N $INODE_COUNT _disk_image || die "could not create filesystem"
|
||||
else
|
||||
mke2fs -q -I $INODE_SIZE -N $INODE_COUNT _disk_image || die "could not create filesystem"
|
||||
fi
|
||||
"${MKE2FS_PATH}" -q -I "${INODE_SIZE}" -N "${INODE_COUNT}" _disk_image || die "could not create filesystem"
|
||||
fi
|
||||
echo "done"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue