if [ -z "$IMAGE" ]; then
eerror "${FUNCNAME}: IMAGE is unset"
return 1
+ else
+ IMAGE="${IMAGE}/${EPREFIX}"
fi
# Smart FileSystem Permissions
if hasq sfperms $FEATURES; then
if [ -z "$IMAGE" ]; then
eerror "${FUNCNAME}: IMAGE is unset"
return 1
+ else
+ IMAGE="${IMAGE}/${EPREFIX}"
fi
# total suid control.
if hasq suidctl $FEATURES; then
if [ -z "$IMAGE" ]; then
eerror "${FUNCNAME}: IMAGE is unset"
return 1
+ else
+ IMAGE="${IMAGE}/${EPREFIX}"
fi
if hasq selinux ${FEATURES}; then
# SELinux file labeling (needs to always be last in dyn_preinst)
# only attempt to label if setfiles is executable
# and 'context' is available on selinuxfs.
- if [ -f /selinux/context -a -x ${EPREFIX}/usr/sbin/setfiles -a -x ${EPREFIX}/usr/sbin/selinuxconfig ]; then
+ if [ -f ${EPREFIX}/selinux/context -a -x ${EPREFIX}/usr/sbin/setfiles -a -x ${EPREFIX}/usr/sbin/selinuxconfig ]; then
vecho ">>> Setting SELinux security labels"
(
eval "$(${EPREFIX}/usr/sbin/selinuxconfig)" || \
filemode=060, filemask=0)
return retval
elif mydo == "preinst":
- mysettings["IMAGE"] = mysettings["EDEST"]
+ mysettings["IMAGE"] = mysettings["D"]
phase_retval = spawn(" ".join((EBUILD_SH_BINARY, mydo)),
mysettings, debug=debug, free=1, logfile=logfile)
if phase_retval == os.EX_OK: