SliTaz SliTaz Forum

You are not logged in.

#1 2014-03-07 19:40:00

KairiTech
Member
Registered: 2014-03-07
Posts: 3

scratchbook chroot instruction

I'm looking at the /etc/fstab or /etc/mtab section in the scratchbook and there seems to be an error. Looks like ash is being called from the host. There is an oddly place forward slash one the next line as well as all of the lines in the Keyboard section.

Is this an error or am I misunderstand the code?

[c]# chroot . /bin/ash
/# ln -s /proc/mounts /etc/mtab[/c]
[c]/# mkdir /usr/share/kmap
/# /bin/busybox dumpkmap > /usr/share/kmap/fr_CH.kmap
/# exit[/c]

Offline

#2 2014-03-07 21:31:01

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: scratchbook chroot instruction

http://doc.slitaz.org/en:scratchbook:base-system

Previous steps build the root file system in the current working directory.

The shell interprets . as the current working directory.

To chroot into the root file system in the current directory and define the shell as /bin/ash

[c]chroot . /bin/ash[/c]

The command prompt in bold changes from # to /# in the chroot

# [c]chroot . /bin/ash[/c]

/# [c]ln -s /proc/mounts /etc/mtab[/c]

/# [c]mkdir /usr/share/kmap[/c]

/# [c]/bin/busybox dumpkmap > /usr/share/kmap/fr_CH.kmap[/c]

/# [c]exit[/c]

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]