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

PPM tweaks: Update installpkg.sh #4294

Open
wants to merge 3 commits into
base: testing
Choose a base branch
from

Conversation

rizalmart
Copy link
Contributor

  1. Use the save file path instead of /tmp as working directory. This will able to install large packages.

  2. Install the extracted packages on savepath location rather than on "/" to avoid quick filling of working tmpfs on odd-numbered pupmodes

1. Use the save file path instead of /tmp as working directory. This will able to install large packages.

2. Install the extracted packages on savepath location rather than on "/" to avoid quick filling of working tmpfs on odd-numbered pupmodes
@peabee peabee requested a review from rserwin1 June 13, 2024 05:48
@rserwin1
Copy link
Contributor

rserwin1 commented Jun 18, 2024

I feel that jrb and Marv need to be consulted about the removal of their work directory logic.

I infer from the clear_workdir code that the copy is made to replace the old version of each file. The changes seem to copy the files to another /tmp directory. How do the changes make the replacement?

I don't feel confident in recommending either accepting or rejecting the PR, at this point.

Copy link
Contributor

@rserwin1 rserwin1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment (above).

@peabee
Copy link
Contributor

peabee commented Jun 18, 2024

What happens if a "save file" does not exist?

Will ask Marv and JRB by pm on forum for comments.

@rizalmart
Copy link
Contributor Author

What happens if a "save file" does not exist?

Will ask Marv and JRB by pm on forum for comments.

DIRECTSAVEPATH was a value of SAVE_LAYER variable in /etc/rc.d/PUPSTATE file

So it means if the save file doesn't exists it will just create working folder at "/"

@Marv1943
Copy link

Marv1943 commented Jun 18, 2024

I have a couple of questions/reservations here.

One: I run all of my personal pups without savefiles so there should be an explicit default to /tmp in that case.

Two: For my users, I add a very small (often only 128 or 256 Mb) savefile to customize the install for them. That greatly simplifies updating for me. Thus, a wkdir in /tmp is far larger on any of my (older -circa 2012 with 4 to 6 Gb RAM) laptops than a savefile based one. I guess a size check and use of the larger space would work there but adds complexity.

Three: I much prefer ONLY using/updating those savefiles when I choose to do so. Either manually or on shutdown via dialog box. This is for 'safety' reasons and has served me well. They are not set up to be working memory.

Added working directory auto selection
@Marv1943
Copy link

Marv1943 commented Jun 19, 2024 via email

@peabee
Copy link
Contributor

peabee commented Jun 19, 2024

I also don't like cluttering up the savefile/folder unless 100% necessary. With /tmp you're guaranteed it's gone on next boot.

@rizalmart
Copy link
Contributor Author

rizalmart commented Jun 19, 2024

I also don't like cluttering up the savefile/folder unless 100% necessary. With /tmp you're guaranteed it's gone on next boot.

It does not clutter because it stays on a single folder which was a folder for working dir. Also, it removes the working directory if the installation of package was complete

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.

4 participants