Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installation Script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
custom82
n00b
n00b


Joined: 13 Feb 2020
Posts: 63
Location: Collecorvino (PE) Italy

PostPosted: Sun Mar 15, 2020 2:28 pm    Post subject: Installation Script Reply with quote

i am writing a script to install gentoo as i could do to run emerge with chroot command?
Back to top
View user's profile Send private message
ff11
Guru
Guru


Joined: 10 Mar 2014
Posts: 503

PostPosted: Wed Mar 18, 2020 5:33 pm    Post subject: Re: Installation Script Reply with quote

custom82 wrote:
i am writing a script to install gentoo as i could do to run emerge with chroot command?

You can create a second script (e.g. install_inside_chroot.sh) and place it inside your "/mnt/gentoo" folder.
Then you call this script from your original script, like this:
Code:
chroot /mnt/gentoo/ ./install_inside_chroot.sh

So, the script install_inside_chroot.sh will be executed inside your chroot.
_________________
| Proverbs 26:12 |
| There is more hope for a fool than for a wise man that are wise in his own eyes. |
* AlphaGo - The Movie - Full Documentary
"I want to apologize for being so powerless" - Lee
Back to top
View user's profile Send private message
custom82
n00b
n00b


Joined: 13 Feb 2020
Posts: 63
Location: Collecorvino (PE) Italy

PostPosted: Mon Mar 23, 2020 10:50 pm    Post subject: Reply with quote

thanks!
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3774
Location: Illinois, USA

PostPosted: Tue Mar 24, 2020 12:09 am    Post subject: Reply with quote

Ah! NOW I see why we run "chroot /mnt/gentoo /bin/bash"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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