add new profile.d script for portage rename

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@2637 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2010-10-31 14:44:49 +00:00
parent 4f61db0cf8
commit 9a8bcf897a
4 changed files with 20 additions and 10 deletions

View File

@@ -23,19 +23,19 @@ rm -rf /usr/local/bin/.svn
# but the linkstation works with it
rm -f /etc/portage/package.mask/coreutils
# clean all not needed packages
emerge --depclean
# init bash profile for root
cp -Rv /etc/skel/.* /root/
# unmount the snapshot for creationg the initial portage dir in the final package
umount /usr/portage
# create the new portage dir
mkdir /usr/portage.new
# shrink the image by only syncing the requred dirs into /usr/portage
# the only dirs that survive are profiles (required), eclass (required), licenses (required)
# we have to use the IP as the resolve.conf file is already gone
# but a new one will be added in a later phase of catylast
rsync -aPv rsync://83.164.133.198/gentoo-portage/profiles /usr/portage/
rsync -aPv rsync://83.164.133.198/gentoo-portage/eclass /usr/portage/
rsync -aPv rsync://83.164.133.198/gentoo-portage/licenses /usr/portage/
rsync -aPv rsync://83.164.133.198/gentoo-portage/profiles /usr/portage.new/
rsync -aPv rsync://83.164.133.198/gentoo-portage/eclass /usr/portage.new/
rsync -aPv rsync://83.164.133.198/gentoo-portage/licenses /usr/portage.new/
# change password for root user
/usr/local/bin/changepassword root goLsProLive