mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
Meta: Allow overriding the calculated disk image inode count
This commit is contained in:
parent
e887989c23
commit
f7ac121ac4
1 changed files with 7 additions and 0 deletions
|
@ -71,6 +71,13 @@ else
|
|||
DISK_SIZE_BYTES="$SERENITY_DISK_SIZE_BYTES"
|
||||
fi
|
||||
|
||||
if [ -n "$SERENITY_INODE_COUNT" ]; then
|
||||
if [ "$INODE_COUNT" -gt "$SERENITY_INODE_COUNT" ]; then
|
||||
die "SERENITY_INODE_COUNT is set to $SERENITY_INODE_COUNT but required inode count is roughly $INODE_COUNT"
|
||||
fi
|
||||
INODE_COUNT="$SERENITY_INODE_COUNT"
|
||||
fi
|
||||
|
||||
nearest_power_of_2() {
|
||||
local n=$1
|
||||
local p=1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue