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

RPi4 Bookworm - PiShrink v0.1.5 ERROR occurred in line 261: parted is not installed. #289

Open
cleanev opened this issue Oct 10, 2024 · 2 comments

Comments

@cleanev
Copy link

cleanev commented Oct 10, 2024

Title says it all -

Installed newest script on fresh bookworm install on raspberry pi4. If script is run interactively using SSH or at console there is no error and it succeeds whereas using it under a script running as root, throws below error.

PiShrink v0.1.5 - https://github.com/Drewsif/PiShrink
pishrink.sh: ERROR occurred in line 261: parted is not installed.

exact command passed in script as well as on ssh/console
sudo /usr/local/bin/pishrink.sh -a -d -v -z /mnt/backup/pathtodestination/$HOSTNAME.$(date +%Y%m%d).img
OS version -
Linux masteraio 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux
parted version as reported is -
parted (GNU parted) 3.5

Thank you

@Drewsif
Copy link
Owner

Drewsif commented Oct 23, 2024

What is the output of sudo which parted? Its possible parted is not in root's $PATH

@cleanev
Copy link
Author

cleanev commented Oct 23, 2024

Thanks for looking into this.
Here’s the output
17:27:01-pi@masteraio: ~$sudo which parted;echo "";echo $PATH
/usr/sbin/parted

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games

———————

I checked 2 bullseye installs and 1 bookworm install that has same output as above for $PATH & all 3 are running on a daily schedule.

Hope this helps narrow down the issue.

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

No branches or pull requests

2 participants