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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user