You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Problem with setup an image on MAC USER: unbound variable #231
@unfixa1 Is this an advertisement? Its certainly not what I would recommend, docker is the supported method here. Give me a reason no to delete your comment not to confuse people.
You called your distribution there test not ExampleDistro
(command I see that in is: command: ./src/make_custom_pi_os -g test)
Also note something about mac - dont run this in the /tmp folder. I just tried and found the mount didn't work because of that. make sure you are in your home directory or somewher that is not /tmp
it seems to be because this line is expecting an environment variable called USER it would probably fix it by changing it to chown -R "(id -un")":"$(id -gn")" "${DEST}". Which would use the configured one inside the container. Or setting ENV USER=root when the docker image is built
Activity
guysoft commentedon Oct 14, 2024
@unfixa1 Is this an advertisement? Its certainly not what I would recommend, docker is the supported method here. Give me a reason no to delete your comment not to confuse people.
guysoft commentedon Oct 14, 2024
@EnvironCMO Your docker compose is missing the mounts to the distruction it should go in
/distroLike this:
Here is a correct docker compose placed in your src folder if the "test" dir you wrote above:
You called your distribution there
testnotExampleDistro(command I see that in is:
command: ./src/make_custom_pi_os -g test)Also note something about mac - dont run this in the
/tmpfolder. I just tried and found the mount didn't work because of that. make sure you are in your home directory or somewher that is not/tmpguysoft commentedon Oct 27, 2024
Closing if no reply
EnvironCMO commentedon Oct 30, 2024
sorry, i'm currently very busy with other topics. but i'll take a look at it.
sharpn commentedon Oct 30, 2024
Hey, I just followed this thread and seemed to get this working by setting
in the docker file under custompios
full docker-compose as follows
then running
cd CustomPiOS ./make_custom_pi_os -g /distro/testingfrom inside the docker container
guysoft commentedon Oct 30, 2024
@sharpn Strange, the user is already root. No need to set it. what error do you get without it?
sharpn commentedon Oct 30, 2024
it seems to be because this line is expecting an environment variable called
USERit would probably fix it by changing it tochown -R "(id -un")":"$(id -gn")" "${DEST}". Which would use the configured one inside the container. Or settingENV USER=rootwhen the docker image is builtguysoft commentedon Oct 30, 2024
Hey,
It guess we could change it to
I am not sure if it will break it for people in another way though. Since the user group ID might be different than the ones in the container
[-]Problem with setup an image on MAC[/-][+]Problem with setup an image on MAC USER: unbound variable[/+]