Remove old code
This commit is contained in:
parent
bff176ee38
commit
6b5cdf9b7b
@ -8,8 +8,6 @@ if
|
|||||||
export DISK_SIZE=$(du -sb "$1" | cut -f1)
|
export DISK_SIZE=$(du -sb "$1" | cut -f1)
|
||||||
# Add 256MB for SWAP, and 700MB for overhead
|
# Add 256MB for SWAP, and 700MB for overhead
|
||||||
export DISK_SIZE=$(( $DISK_SIZE + ( 256 * 1000000 ) + ( 700 * 1000000 ) ))
|
export DISK_SIZE=$(( $DISK_SIZE + ( 256 * 1000000 ) + ( 700 * 1000000 ) ))
|
||||||
# Add size of additional files
|
|
||||||
export DISK_SIZE=$(( $DISK_SIZE + $(du -sb "$OPUS_HOME/input/root-image" | cut -f1) ))
|
|
||||||
|
|
||||||
# Create and mount disk
|
# Create and mount disk
|
||||||
fallocate -l $DISK_SIZE "$DISK_IMAGE"
|
fallocate -l $DISK_SIZE "$DISK_IMAGE"
|
||||||
|
Loading…
Reference in New Issue
Block a user