View previous topic :: View next topic |
Author |
Message |
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 268
|
Posted: Wed Feb 16, 2022 5:30 pm Post subject: Install chrooted Gentoo on Debian |
|
|
Debian does not have env-update command.
When I have mounted and chrooted into Gentoo, it seems to work but alot is missing, adduser forr example.
How should chrooted Gentoo be mounted from Debian, or is it even possible?
Everything seems to be mounted correctly as far as I can see, are those missing commands caused beacause I cant exec this
env-update && . /etc/profile
Code: |
root #mount --rbind /dev /mnt/mychroot/dev
root #mount --make-rslave /mnt/mychroot/dev
root #mount -t proc /proc /mnt/mychroot/proc
root #mount --rbind /sys /mnt/mychroot/sys
root #mount --make-rslave /mnt/mychroot/sys
root #mount --rbind /tmp /mnt/mychroot/tmp
|
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30996 Location: here
|
|
Back to top |
|
|
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 268
|
Posted: Wed Feb 16, 2022 5:53 pm Post subject: |
|
|
fedeliallalinea wrote: | https://wiki.gentoo.org/wiki/Installation_alternatives#Chrooting |
Thank you!
Does this seem to be correct?
Code: | cd /home/gentoo_ssh && mount --rbind /dev /home/gentoo_ssh/dev && mount --make-rslave /home/gentoo_ssh/dev && mount -t proc /proc /home/gentoo_ssh/proc && mount --rbind /sys /home/gentoo_ssh/sys && mount --make-rslave /home/gentoo_ssh/sys && mount --rbind /tmp /home/gentoo_ssh/tmp && cp /etc/resolv.conf /home/gentoo_ssh/etc && env -i HOME=$HOME TERM=$TERM /sbin/chroot /home/gentoo_ssh /bin/bash && /usr/sbin/env-update && source /etc/profile &&export PS1="(chroot) $PS1" |
It is not right as /run is not mounted correctly.
Code: | !!! It seems /run is not mounted. Process management may malfunction. |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30996 Location: here
|
Posted: Wed Feb 16, 2022 6:47 pm Post subject: |
|
|
Nreal wrote: | It is not right as /run is not mounted correctly.
Code: | !!! It seems /run is not mounted. Process management may malfunction. |
|
Because you not mounted /run, see handbook.
The part of mounting /run is missing in some localizated handbooks. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 268
|
Posted: Wed Feb 16, 2022 7:46 pm Post subject: |
|
|
fedeliallalinea wrote: | Nreal wrote: | It is not right as /run is not mounted correctly.
Code: | !!! It seems /run is not mounted. Process management may malfunction. |
|
Because you not mounted /run, see handbook.
The part of mounting /run is missing in some localizated handbooks. |
Yes that was it, thank you |
|
Back to top |
|
|
|