chroot使用了很多年,第一次遇到這個問題
chroot FATAL: kernel too old
。那是在一個Android 4.2.2(kernel 3.0.36)下準備chroot進Ubuntu 16.04下遇到的問題,簡單使用strace跟蹤了一下,是Ubuntu 16.04裡報的錯誤和busybox sh都沒有關系,換成
Ubuntu 14.04
沒有問題了。具體的問題是出在了Ubuntu檔案系統裡有gcc庫檔案,庫檔案使用了arm-linux-gcc,arm-linux-gcc有最低版本核心的要求,Ubuntu 16.04内的指定的核心版本可能高于3.0.36,進而導緻出現
chroot FATAL: kernel too old
。