Meego Wiki
Views

ARM/N900/Install/chroot

From MeeGo wiki
< ARM | N900 | Install
Revision as of 12:25, 31 March 2010 by Stskeeps (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Under construction

Create directory for chroot and unpack Meego image there

export MEEGO_ROOT="FIXME"
mkdir $MEEGO_ROOT
tar xzf <meego-image> -C  $MEEGO_ROOT

Mounts for chroot environment

mount -o bind /proc $MEEGO_ROOT/proc
mount -o bind /sys  $MEEGO_ROOT/sys
mount -o bind /dev  $MEEGO_ROOT/dev
mount -o bind /dev/pts $MEEGO_ROOT/dev/pts

mount -o bind /var/lib/dbus/ $MEEGO_ROOT/var/lib/dbus/
mount -o bind /usr/share/fonts $MEEGO_ROOT/usr/share/fonts

mount -t tmpfs tmpfs  $MEEGO_ROOT/tmp
mount -t tmpfs tmpfs  $MEEGO_ROOT/var/run

Copy resolv.conf for networking

cp /etc/resolv.conf /home/user/meego/etc/resolv.conf

Starting chroot

cd $MEEGO_ROOT
chroot . /bin/bash
Personal tools