alpinelinux / alpine-chroot-install

Install Alpine Linux in chroot with a breeze. Build ARM on Travis CI or any other x86_64 CI.
MIT License
294 stars 59 forks source link

Suggestion for loading /etc/profile #45

Open sodface opened 1 year ago

sodface commented 1 year ago

https://github.com/alpinelinux/alpine-chroot-install/blob/6d08f12a8a70dd9b9dc7d997c88aa7789cc03c42/alpine-chroot-install#L204

I ran into this issue with an Alpine chroot script I'm working on. This seems to be working for me, including with qemu-user:

chroot . /usr/bin/env -i su -l "$user" -c "/bin/sh --login"

Not using the rest (/env.sh etc.) and didn't test it with this script so this may or may not be helpful!

Might help with https://github.com/alpinelinux/alpine-chroot-install/issues/38