Is there /sbin/init in your ~/meego-chroot?

From: [email protected] [mailto:[email protected]] On 
Behalf Of Kumar
Sent: Monday, November 22, 2010 4:45 PM
To: [email protected]
Subject: [MeeGo-SDK] mic-chroot error

Hi all,

I am trying to set up chroot on my linux with steps in  
http://wiki.meego.com/SDK/Docs/1.1/Building_a_MeeGo_chroot_on_Linux.

I am getting following error

$ sudo ./mic-chroot  ~/meego-chroot
+====================================================================================+
| WARNING: this script is very dangerous, it may damage your system data,       
     |
| so please use it carefully and read this warning seriously.                   
     |
|                                                                               
     |
| mic-chroot will create some temporary directories under /var/tmp, their names 
     |
| look like 'mic-tmp-*', mic-chroot also creates a directory to save image      
     |
| file system for chroot. For such directories, please use mic-rm-chroot-dir to 
     |
| remove, otherwise, you may remove your whole system by 'rm -rf <yourdir>' if 
you   |
| terminate mic-chroot because of some exceptions or unknown errors, the root   
     |
| cause is mic-chroot will bind mount / to chroot directory, exceptional        
     |
| terminations didn't unmount it, so you may damage your system, we have warned 
you. |
| Please use it very very carefully, and don't use 'rm -rf' for such 
directories,    |
| instead, use 'mic-rm-chroot-dir'                                              
     |
+====================================================================================+


Traceback (most recent call last):
  File "./mic-chroot", line 248, in <module>
    sys.exit(main())
  File "./mic-chroot", line 224, in main
    chroot.chroot(options.saveto, bindmounts = options.bindmounts, execute = 
"/bin/env HOME=/root /bin/bash")
  File "/usr/lib/python2.6/dist-packages/mic/chroot/chroot.py", line 337, in 
chroot
    raise imgcreate.CreatorError("Failed to get architecture of /sbin/init")
mic.imgcreate.errors.CreatorError: Failed to get architecture of /sbin/init


any pointers...thanks in advance

rgds,
kumar


_______________________________________________
MeeGo-sdk mailing list
[email protected]
http://lists.meego.com/listinfo/meego-sdk

Reply via email to