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

paru still uses hardcoded sudo if chroot is enabled #1316

Open
Jaldebehot opened this issue Jan 12, 2025 · 0 comments
Open

paru still uses hardcoded sudo if chroot is enabled #1316

Jaldebehot opened this issue Jan 12, 2025 · 0 comments

Comments

@Jaldebehot
Copy link

Affected Version

paru -V
paru v2.0.4 - libalpm v15.0.0

Description

I'm no rustacean but I think the problem is in install.rs

sudo: "sudo".to_string(),

paru switches between using the hardcoded sudo binary and the alternative I specified in my config file. It asks for my sudo password right before "Synchronizing chroot copy"

Output

Include the FULL output of any relevant commands/configs

Don't cut parts of the input always include the FULL thing

paru.conf and pacman.conf are usually always relevant
paru.conf

[options]
PgpFetch
Provides
DevelSuffixes = -git -cvs -svn -bzr -darcs -always -hg -fossil
BottomUp
RemoveMake
SaveChanges
CombinedUpgrade
NewsOnUpgrade
LocalRepo
Chroot
[bin]
Sudo = doas

Example session:

$ paru -B .
:: Generating .SRCINFO for ./libjxl-git...
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

[summary omitted]

:: Proceed with installation? [Y/n]:
doas ([omitted]@[omitted]) password:
:: Synchronizing package databases...
 core is up to date
 [etc...]
:: Starting full system upgrade...
 there is nothing to do
[sudo] password for [omitted]:
==> Synchronizing chroot copy [/var/lib/aurbuild/x86_64/root] -> [[omitted]]...done
:: Synchronizing package databases...
[omitted]
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

1 participant