summaryrefslogtreecommitdiff
path: root/bin/man/enter-chroot.8
blob: 622b7a993475996f240170d0c2359863fa3e5ab9 (plain)
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
.Dd September 27, 2026
.Dt ENTER-CHROOT 8
.Os
.Sh NAME
.Nm enter-chroot
.Nd open a shell in the installed system
.Sh SYNOPSIS
.Nm
.Ar mountpoint
.Sh DESCRIPTION
.Nm
mounts what a running system needs into
.Ar mountpoint
.Po
.Pa /dev ,
.Pa /dev/pts ,
.Pa /dev/shm ,
.Pa /proc ,
.Pa /sys ,
.Pa /run ,
.Pa /tmp
and, on UEFI machines, the EFI variables
.Pc ,
then starts a login shell there with
.Xr chroot 8 ,
so the new system's
.Pa /etc/profile
applies.
When the shell exits, everything it mounted is unmounted again.
.Pp
The EFI variables are what
.Xr efibootmgr 8
needs to add a boot entry.
.Sh EXAMPLES
.Dl # enter-chroot /mnt
.Sh SEE ALSO
.Xr bootloader 7 ,
.Xr installation 7 ,
.Xr chroot 8