注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Talk:Install/Chroot
Revision as of 07:47, January 28, 2019 by Kreyren (talk | contribs) (→Chrooting from working system?)
Chrooting from working system?
From 'Chroot into Funtoo' funtoo suggest invoking:
- cd /mnt/funtoo
- mount -t proc none proc
- mount --rbind /sys sys
- mount --rbind /dev dev
Which if invoked from 4.18.18-gentoo-r1 results in:
dreamon / # emerge
Failed to validate a sane '/dev'.
bash process substitution doesn't work; this may be an indication of a broken '/dev/fd'.
and `mount`:
ON CHROOT mount: failed to read mtab: No such file or directory ON SYSTEM /dev/sda6 on / type btrfs (rw,relatime,ssd,noacl,space_cache,subvolid=5,subvol=/) devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=2050263,mode=755) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) tmpfs on /run type tmpfs (rw,nodev,relatime,size=1640628k,mode=755) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime) cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755) openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc) none on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu) cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct) freezer on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) /dev/sdb1 on /home type xfs (rw,relatime,attr2,inode64,noquota) /dev/sda2 on /boot type ext2 (rw,relatime,errors=continue,user_xattr) none on /run/user/1000 type tmpfs (rw,relatime,mode=700,uid=1000) sysfs on /mnt/funtoo/sys type sysfs (rw,nosuid,nodev,noexec,relatime) debugfs on /mnt/funtoo/sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) selinuxfs on /mnt/funtoo/sys/fs/selinux type selinuxfs (rw,relatime) cgroup_root on /mnt/funtoo/sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755) openrc on /mnt/funtoo/sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc) none on /mnt/funtoo/sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) cpuset on /mnt/funtoo/sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cpu on /mnt/funtoo/sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu) cpuacct on /mnt/funtoo/sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct) freezer on /mnt/funtoo/sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) /dev/sdb1 on /mnt/funtoo/home type xfs (rw,relatime,attr2,inode64,noquota) devtmpfs on /mnt/funtoo/dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=2050263,mode=755) mqueue on /mnt/funtoo/dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) devpts on /mnt/funtoo/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) shm on /mnt/funtoo/dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
both (mount+emerge err) was fixed by invoking chroot based on https://wiki.gentoo.org/wiki/Chroot#Configuration
Probably should be included in the funtoo handbook?