哦~
 i have found out in irc #mer,thanks @lbt
 https://github.com/mer-tools/sdk-setup/blob/mer-0.36-1/src/mer-sdk-chroot
 just replace the script 'mer-sdk-chroot'






At 2013-06-04 21:41:59,"黄文彪" <huangwenb...@126.com> wrote:

after install mer platform sdk like this link show
https://wiki.merproject.org/wiki/Platform_SDK


why i can't directly use root user to run 'mer-sdk-chroot -u root mount'  ? it 
will show :
This SDK ( /srv/mer/sdks/sdk ) does not appear to be mounted yet - attempting 
mount:
/srv/mer/sdks/sdk/mer-sdk-chroot expects to be run as root using sudo
User could not be obtained from $SUDO_USER, if running as root,
please use -u <user>
............
............
Mounting failed, not entering SDK


so~,i read the script 'mer-sdk-chroot' and find the output "Mounting failed, 
not entering SDK" is from here:
################################################################
# utility
ensure_mounted() {
        echo $sdkroot
    if ! grep " $sdkroot " /proc/mounts > /dev/null; then
        cat <<EOF
This SDK ( ${sdkroot} ) does not appear to be mounted yet - attempting mount:
EOF
        if $0 mount; then
            return
        else
            echo "Mounting failed, not entering SDK"
            exit 1;
        fi
    fi
}






now,if i run 'sudo mer-sdk-chroot mount',it will be done~


Reply via email to