Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install chrooted Gentoo on Debian
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 268

PostPosted: Wed Feb 16, 2022 5:30 pm    Post subject: Install chrooted Gentoo on Debian Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Wed Feb 16, 2022 5:34 pm    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/Installation_alternatives#Chrooting
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 268

PostPosted: Wed Feb 16, 2022 5:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Wed Feb 16, 2022 6:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 268

PostPosted: Wed Feb 16, 2022 7:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum