card-helpers.inc: avoid incorrect size calculations
This popped up when setting BITBAKE_TMPDIR Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
@@ -83,7 +83,8 @@ SelectCardDevice() {
|
||||
ErrorOut 'Cancel selected at SelectCardDevice().'
|
||||
fi
|
||||
DevicePath=${DevicePathArr[$menuitem]}
|
||||
DeviceSize=`lsblk --nodeps --raw --noheadings --output SIZE --bytes $dev`
|
||||
DeviceSize=`lsblk --nodeps --raw --noheadings --output SIZE --bytes $DevicePath`
|
||||
|
||||
unset menuitem
|
||||
unset menuitems
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user