alpine-chroot-install icon indicating copy to clipboard operation
alpine-chroot-install copied to clipboard

Suggestion for loading /etc/profile

Open sodface opened this issue 1 year ago • 0 comments

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

sodface avatar Oct 28 '23 15:10 sodface