2010-10-26 19:22:16 +02:00
|
|
|
#!/bin/sh
|
2010-10-31 14:20:29 +01:00
|
|
|
|
|
|
|
# link the kernel and initrd for the inital package
|
2010-10-26 19:22:16 +02:00
|
|
|
cd /boot
|
|
|
|
ln -sf uImage-*.buffalo uImage.buffalo
|
2010-10-30 14:14:12 +02:00
|
|
|
ln -sf initrd-*.buffalo initrd.buffalo
|
|
|
|
# no search for .svn dir
|
2010-10-31 14:20:29 +01:00
|
|
|
# subversiontrees are used for /etc/portage & /var/lib/layman/go-genlink
|
|
|
|
# so remove manually
|
2010-10-30 14:14:12 +02:00
|
|
|
rm -rf /.svn
|
|
|
|
rm -rf /etc/.svn
|
|
|
|
rm -rf /etc/conf.d/.svn
|
2010-11-01 07:02:34 +01:00
|
|
|
rm -rf /etc/init.d/.svn
|
2010-10-30 14:14:12 +02:00
|
|
|
rm -rf /etc/layman/.svn
|
|
|
|
rm -rf /etc/profile.d/.svn
|
|
|
|
rm -rf /var/.svn
|
|
|
|
rm -rf /var/lib/.svn
|
|
|
|
rm -rf /var/lib/layman/.svn
|
|
|
|
|
2010-10-31 14:20:29 +01:00
|
|
|
# qemu-arm don't work with newer coreutils
|
|
|
|
# but the linkstation works with it
|
2010-10-31 07:03:16 +01:00
|
|
|
rm -f /etc/portage/package.mask/coreutils
|
|
|
|
|
2010-10-31 15:44:49 +01:00
|
|
|
# init bash profile for root
|
2010-11-01 07:02:34 +01:00
|
|
|
cp -Rv /etc/skel/.bash* /root/
|
2010-10-31 14:20:29 +01:00
|
|
|
|
2010-10-31 15:44:49 +01:00
|
|
|
# create the new portage dir
|
|
|
|
mkdir /usr/portage.new
|
2010-10-31 14:20:29 +01:00
|
|
|
|
|
|
|
# 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
|
2010-10-31 15:44:49 +01:00
|
|
|
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/
|
2010-10-31 07:03:16 +01:00
|
|
|
|
2010-10-31 14:20:29 +01:00
|
|
|
# change password for root user
|
2010-11-01 07:02:34 +01:00
|
|
|
echo "root:goLsProLive" | chpasswd
|