Making usb-hdd images large enough (Closes: #468855).
When building a very minimal live system on a usb-hdd target, the generated image is too small. A very minimal system is smaller than 50MB, and so this is the same as DU_DIM for such a system. This is too small. Unconditionally adding one solves the problem.
This commit is contained in:
parent
931881f27a
commit
dd6a5d408b
|
@ -82,7 +82,7 @@ fi
|
|||
|
||||
# Everything which comes here needs to be cleaned up,
|
||||
DU_DIM="$(du -ms binary | cut -f1)"
|
||||
REAL_DIM="$(expr ${DU_DIM} + ${DU_DIM} / 50)" # Just 2% more to be sure, need something more sophistcated here...
|
||||
REAL_DIM="$(expr ${DU_DIM} + ${DU_DIM} / 50 + 1)" # Just 2% more to be sure, need something more sophistcated here...
|
||||
dd if=/dev/zero of=chroot/binary.img bs=1024k count=0 seek=${REAL_DIM}
|
||||
FREELO="$(${LH_LOSETUP} -f)"
|
||||
if [ ! -b chroot/${FREELO} ]
|
||||
|
|
|
@ -72,7 +72,7 @@ fi
|
|||
|
||||
# Everything which comes here needs to be cleaned up,
|
||||
DU_DIM="$(du -ms source | cut -f1)"
|
||||
REAL_DIM="$(expr ${DU_DIM} + ${DU_DIM} / 50)" # Just 2% more to be sure, need something more sophistcated here...
|
||||
REAL_DIM="$(expr ${DU_DIM} + ${DU_DIM} / 50 + 1)" # Just 2% more to be sure, need something more sophistcated here...
|
||||
dd if=/dev/zero of=source.img bs=1024k count=0 seek=${REAL_DIM}
|
||||
FREELO="$(${LH_LOSETUP} -f)"
|
||||
if [ ! -b chroot/${FREELO} ]
|
||||
|
|
Loading…
Reference in New Issue