Code: Select all
Free space error
This is a rare error that fails to report the available free space. It should be OK after a restart
Code: Select all
# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
tmpfs 500 381 120 77% /initrd/mnt/tmpfs
unionfs 500 381 120 77% /
/dev/loop0 164 164 0 100% /initrd/pup_ro2
/dev/loop1 20 20 0 100% /initrd/pup_f
/dev/loop2 24 24 0 100% /initrd/pup_z
tmpfs 3 3 1 82% /initrd/files
devtmpfs 499 1 499 1% /dev
shmfs 192 0 192 0% /dev/shm
/initrd/pup_rw -> /initrd/mnt/tmpfs/pup_rw
So in the following code perhaps /initrd/mnt/tmpfs should replace pup_rw:
lines 217 to 237 of /usr/local/petget/installmodes.sh
Code: Select all
if [ ! -f /tmp/pup_event_sizefreem ]; then
/usr/local/pup_event/frontend_timeout &
sleep 1
if [ ! -f /tmp/pup_event_sizefreem ]; then
. /etc/rc.d/PUPSTATE
case $PUPMODE in
2) AVAILABLE=$(df -m | grep / | head -n 1 | awk '{print $4}');;
5|6) AVAILABLE=$(df -m | grep pup_rw | awk '{print $4}');;
7|13) AVAILABLE=$(df -m | grep pup_ro1 | awk '{print $4}');;
12) AVAILABLE=$(df -m | grep pup_rw | awk '{print $4}')
[ "$AVAILABLE" = "" ] && AVAILABLE=$(df -m | grep dev_save | awk '{print $4}');;
esac
if [ ! "$AVAILABLE" ]; then
echo "Free space estimation error. Exiting" > /tmp/petget-proc/petget/install_status
. /usr/lib/gtkdialog/box_ok "$(gettext 'Free space error')" error "$(gettext 'This is a rare error that fails to report the available free space. It should be OK after a restart')"
clean_up
exit 1
else
AVAILABLE="$AVAILABLE"
fi
else
but it is possible that something here is a quirk of my woof-nex build of tiny tiny_puduan_ascii
I'm going to make the change and see what happens. This issue comes up in my qemu test, prior to creating a save folder/file.
If we base the free space on tmpfs, I wonder if we should require a certain margin of free space.