File: chroot.rst

package info (click to toggle)
pmbootstrap 3.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,864 kB
  • sloc: python: 17,395; sh: 425; makefile: 17
file content (54 lines) | stat: -rw-r--r-- 874 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
######
Chroot
######

chroot (short for "change root") is a system call and command that changes the apparent root directory.
This can come in very handy to make some modifications in the generated image file.



Enter the armhf building chroot:

.. code-block:: shell

  $ pmbootstrap chroot -b armhf


Run a command inside a chroot:

.. code-block:: shell

  $ pmbootstrap chroot -- echo test


Safely delete all chroots:

.. code-block:: shell

  $ pmbootstrap zap



Use ``chroot`` to install a specific kernel version from an apk file. 


copy your working kernel apk to the chroot dir of pmbootstrap:

.. code-block:: shell

  $ sudo cp /path/of/linux-kernel.apk ~/.local/var/pmbootstrap/chroot_rootfs_oneplus-enchilada/ 

enter chroot

.. code-block:: shell

  $ pmbootstrap chroot -r 


and install the package:

.. code-block:: shell

 $ apk add linux-kernel.apk