[Bugs] #4389 sugar-build UNSP: Implement and document how to run Sugar in a Chroot environment.

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Jan 17 13:19:38 EST 2013


#4389: Implement and document how to run Sugar in a Chroot environment.
------------------------------------------+---------------------------------
    Reporter:  danielfrancis              |          Owner:  danielfrancis    
        Type:  task                       |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  not applicable   
   Component:  sugar-build                |        Version:  Git as of bugdate
    Severity:  Minor                      |       Keywords:                   
Distribution:  Ubuntu                     |   Status_field:  Assigned         
------------------------------------------+---------------------------------
 Sugar is supported in up-to-date GNU/Linux distributions. When a
 distribution has old packages, it doesn't use package managers, or other
 reasons to don't support it in sugar-build, the way I found to build and
 run Sugar is installing a supported distribution in another disk partition
 and using chroot to run commands as in the supported distribution.

 The procedure I'm using to mount and chroot (all as root):

 The command xchroot is this script:
 http://www.elstel.com/xchroot/xchroot-v2.1
 It does easier the way to run X applications.

 $ su
 # mount /dev/sda1 /mnt/ubuntu
 # mount /dev/sda5 /mnt/ubuntu/home
 # cd /mnt/ubuntu
 # mount --bind /dev dev
 # mount --bind /proc proc
 # # Sometimes you need to copy /etc/resolv.conf to etc
 # xchroot .
 # su sdf # Ubuntu user which has built Sugar
 $ cd ~/sugar-build
 $ make shell
 [$] sugar-emulator

 ----

 sugar-emulator works for me, but I get an error when using make run and
 sugar-runner.

 The log was:
 http://people.sugarlabs.org/francis/logs/sugar-run.log

 I'll be testing and trying to document the procedure. Also I'll attach
 some patches to sugar-runner to allow to run correctly in a chroot
 environment.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4389>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list