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

Symlink to pkglist.sh assumes the username to be "pi" #156

Closed
sidcha opened this issue Aug 2, 2023 · 1 comment
Closed

Symlink to pkglist.sh assumes the username to be "pi" #156

sidcha opened this issue Aug 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@sidcha
Copy link

sidcha commented Aug 2, 2023

What happened

The symlink for pkglist.sh in tools/ was broken

What did you expect to happen

They symlink to be username agnostic.

How to reproduce

Install mainsail OS on a raspberry-pi using the imager tool and choose a different username for the pi (under the additional settings window).

Additional information

From a quick look, I think this line is at fault. It should derive the path based on $BASE_USER as in other places.

@sidcha sidcha added the bug Something isn't working label Aug 2, 2023
@mryel00
Copy link
Member

mryel00 commented Aug 2, 2023

This bug doesn't have to do something with crowsnest directly and is already known. The problem is this module. As the BASE_USER of the MainsailOS image is pi and you rename it with Raspi Imager. The single symlinks and files have to be updated then too. There comes in the postrename script, that currently doesn't work correct and @KwadFan didn't yet have time to fix it.

If you build crowsnest yourself (or use kiauh for example) the symlink is created correctly.
So please open an issue on the MainsailOS GitHub.

To fix it atm, just run:

rm -rf ~/crowsnest/tools/pkglist.sh
ln -sf ~/crowsnest/tools/libs/pkglist-rpi.sh ~/crowsnest/tools/pkglist.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants