Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more robust free space checking for sandboxes. See: http://www.murga-… #1758

Conversation

s243a
Copy link
Contributor

@s243a s243a commented Feb 26, 2020

…linux.com/puppy/viewtopic.php?p=1051204#1051204

If you run puppylinux in a chroot system (e.g. my psandbox script), then this isn't an issue at first since PUPMODE=2. However, if you then boot the created save file as your actual system then /etc/rc.d/PUPSTATE might be left over and it might have a PUPMODE different than "2". In my case it was 12, when testing arch32pup. This broke puppies package manager when I tried to reload the puppy in a sandbox since the PUPSTATE was left over (from my real boot) with PUPMODE=12.

For further discussion see:
More Robust Free Space Checking for ppm @ http://www.murga-linux.com/

This changed fixed the ppm (puppy package manager) in chroot system.

@s243a
Copy link
Contributor Author

s243a commented Feb 26, 2020

As a side note, in PUPMODE=12 we can get the size from looking at the free space at "/". This might be more robust if for some reason the /initrd/pup_rw symlink got broken.

@mavrothal
Copy link
Contributor

if /initrd/pup_rw symlink got broken you have much more serious issues...

@s243a
Copy link
Contributor Author

s243a commented Feb 27, 2020

if /initrd/pup_rw symlink got broken you have much more serious issues...

Maybe so but his change doesn't consider that case.

@01micko
Copy link
Contributor

01micko commented Mar 7, 2020

# pwd
/initrd/mnt/dev_save/woof-CE/woof-code/rootfs-skeleton/etc/rc.d
# . functions_x && fx_personal_storage_free_mb
46748

Try that with your change and the output is in kB!

Do this instead

df -am

@01micko 01micko closed this in c2e20d0 Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants