Summary: | emerge: write access check for / should be done after processing bashrc | ||
---|---|---|---|
Product: | Portage Development | Reporter: | SpanKY <vapier> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | kfm |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
SpanKY
![]() I guess we can just remove the existing check and add something like this just before calling preinst in ebuild.sh: [[ -w $ROOT ]] || die "$ROOT is not writable" There's also the issue of pkg_setup which may require write access. I suppose we can just let it die be itself if necessary, though. yeah, i'm aware of the pkg_setup part, but not too many packages do that. and ones that do should be doing error checking. your suggested check looks sane to me. it would also produce a better log output i think as the current one simply exits with a single line like: access(/, W_OK) |