chroot

 

[root@localhost satimis]# chroot "$LFS" /tools/bin/env -i > HOME=/root TERM="$TERM" PS1=\u:\w\$  > PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin > /tools/bin/bash --login +h

 

 

[root@centos7 nginx_ingress]# chroot rootfs2 /usr/bin/env -i SHELL=/bin/sh  bash
bash-5.1# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever

 

chroot

上一篇:root 设置重要文件


下一篇:laravel8(二)配置自定义路由文件