Skip to content

Commit

Permalink
Updated padding
Browse files Browse the repository at this point in the history
  • Loading branch information
lkunjumon committed May 19, 2021
1 parent 538f077 commit 884b169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installer/sharch_body.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ if [ "$(id -u)" = "0" ] ; then
mount_size=$(df $tmp_dir | tail -1 | tr -s ' ' | cut -d' ' -f4)
# Extra space for tmp
padding=102400

This comment has been minimized.

Copy link
@antony-rheneus

antony-rheneus May 19, 2021

Contributor

write some comment saying how much u r increasing... as u will get lot of commets again here

if [ "$mount_size" -le "$((image_size + $padding))" ]; then
mount_size=$((((image_size + $padding)/1024/1024)+1))
if [ "$mount_size" -le "$((image_size + padding))" ]; then
mount_size=$((((image_size + padding)/1024/1024)+1))
mount -o remount,size="${mount_size}G" -t tmpfs tmpfs-installer $tmp_dir || exit 1
fi
fi
Expand Down

0 comments on commit 884b169

Please sign in to comment.