-
Notifications
You must be signed in to change notification settings - Fork 167
Description
i noticed that when running consecutive builds, my harddisk fills up.
i'm starting with 62GB of free space, and after the build there are only 49GB.
This is not very exciting, as my workspace/ now contains a 14GB image file.
it's getting interesting, when rebuilding:
sudo rm -rf workspace
sudo ./build_distafter a successful build, i now only have 36GB of free space. and so on.
i'm doing this on a separate partition where nothing else (to my knowledge) could possibly be eating diskspace.
after a reboot, my diskspace is happily reclaimed and available again.
this strongly hints at some dangling image file, which - although deleted - still needs space allocated, e.g. because some process is still accessing it.
and indeed, after the build i see:
$ sudo losetup -l -a
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC
/dev/loop0 0 272629760 0 0 /media/DATA/CustomPiOS/test/src/workspace/test.img 0 512after running losetup -d /dev/loop0 the space is properly reclaimed.
so i conclude that the script does not properly detach all disk images