Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can someone verify my custom stage4.tar.bz2 command flow?
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
3xkrazy
n00b
n00b


Joined: 27 Nov 2012
Posts: 8

PostPosted: Thu Nov 21, 2013 12:43 am    Post subject: Can someone verify my custom stage4.tar.bz2 command flow? Reply with quote

I've been looking at the stage4 wiki [1], but i'm not sure if it's outdated or not, especially the exclude directories.

New Gentoo build directory (fast computer):
Code:

~/build/gentoo

Tar up the build directory (Not chrooted, no binds, after a system reboot):
Code:

hle@gentoo ~/temp $ cat stage4.exclude
/home/hle/build/gentoo/tmp/*
/home/hle/build/gentoo/var/tmp/*
/home/hle/build/gentoo/proc/*
/home/hle/build/gentoo/sys/*
/home/hle/build/gentoo/dev/*
hle@gentoo ~/temp $ sudo tar --create --absolute-names --preserve-permissions --totals --bzip2 --ignore-failed-read --verbose --file stage4.tar.bz2 ~/build/gentoo -X stage4.exclude


Restoring stage4.tar.bz2 on a slow computer from a live usb:
Code:

# pwd
/mnt/gentoo
# wget --user=**** --password=**** ftp://192.168.1.129/temp/stage4.tar.bz2
# tar --strip-components=4 -xvjpf stage4.tar.bz2


Then proceed as normal with the rest of the Gentoo handbook.

[1] http://www.gentoo-wiki.info/HOWTO_Custom_Stage4
Back to top
View user's profile Send private message
oandarilho01
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2005
Posts: 132
Location: Rio de Janeiro/RJ - Brasil

PostPosted: Mon Dec 02, 2013 3:38 pm    Post subject: Reply with quote

Hi, 3xkrazy.

I suggest you to include /usr/portage/packages/* and /usr/portage/distfiles/* in the exclude list too, on future stage4 generation rounds.
_________________
Ficai em Paz..
<<O Andarilho>>
Back to top
View user's profile Send private message
fturco
Apprentice
Apprentice


Joined: 08 Dec 2010
Posts: 273
Location: Italy

PostPosted: Mon Dec 02, 2013 3:47 pm    Post subject: Re: Can someone verify my custom stage4.tar.bz2 command flow Reply with quote

3xkrazy wrote:
I've been looking at the stage4 wiki [1], but i'm not sure if it's outdated or not, especially the exclude directories.

3xkrazy wrote:
[1] http://www.gentoo-wiki.info/HOWTO_Custom_Stage4

Gentoo-wiki.info content is very outdated (2008).
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