Installing a rootfs

From Linux Exynos
Revision as of 18:37, 5 April 2014 by Swabbles (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Mount your root partition (we assume for this example that /dev/mmcblk0p3 is the root partition):

mkdir -p /mnt/extern/
mount /dev/mmcblk0p3 /mnt/extern/

Debian

TODO: write about debootstrap.

Gentoo

Download and extract the latest stage3 tarball to your rootfs, whilst preserving the permissions:

wget -O - http://distfiles.gentoo.org/releases/arm/autobuilds/$(wget -O - http://distfiles.gentoo.org/releases/arm/autobuilds/latest-stage3-armv7a.txt 2>/dev/zero | tail -n1) 2>/dev/zero | tar xjp -C /mnt/extern/

Download and extract the Portage package manager:

wget -O - http://distfiles.gentoo.org/releases/snapshots/current/portage-latest.tar.bz2 | tar xjp -C /mnt/extern/usr/