Skip to content

Suggestion for loading /etc/profile #45

@sodface

Description

@sodface

# NOTE: ash does not load login profile when run with QEMU user-mode

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 #38

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions