chroot (english)

rrdebruin edited this page Nov 1, 2012 · 2 revisions

Greetings developers, first thing you will learn, let’s get packages from XXX kitty :)

This guide is to work in a chroot directory as part of the Phoenix runs on a separate disk partition. If you are using a disk partition as ext4 partition to format it as root:

mkfs.ext4 /dev/sdX12 is enough to give command such as:
Sample command: mkfs.ext4 /dev/sda5

Then mount this partition as root

mkdir -pv /mnt/anka mount /dev/sdaX /mnt/anka

Use an external drive without using the chroot environment.
As root mkdir / root / directory, create a phoenix can work there as well.

To use this method READ AND where relevant, by the end of this document before
can be obtained at. The rest of the document expression "according to a separate partition" will continue.
After connecting the partition pisilerimizi rule, the user is:

Before you can go on, you need these pisi packages?

Let us give the command:

sudo pisi it /home/serdar/pisipaketlerim/*.pisi -D /mnt/anka -dv --ignore-dep --ignore-comar --ignore-file-conflicts.

Command to move it to the required files:

cp -Rv /mnt/anka/usr/share/baselayout/* /mnt/anka/etc/

Let’s give the following commands as root:

mount --bind /proc /mnt/anka/proc mount --bind /sys /mnt/anka/sys
mkdir -pv /mnt/anka/dev/shm
mount --bind /dev/shm /mnt/anka/dev/shm

Now we have chroot command: ROOT as:

chroot /mnt/anka

We gave the command, and now we’re home :)

After entering into the chroot:

mknod /dev/console c 5 1 mknod /dev/null c 1 3 mknod /dev/random c 1 8
giving commands.
mknod /dev/ urandom c 1 9
service dbus start
kitty cp-d
waiting to be configured by configuring packages.

Everything’s all right. Now you can start to pack. a trial that top-level directory in the chroot directory, create jobs over there.