diff options
author | 2011-06-14 21:44:05 +0100 | |
---|---|---|
committer | 2011-06-14 21:44:05 +0100 | |
commit | 841df9efa3b2dc065a269ce943f87a8f4de83000 (patch) | |
tree | 42bdc784499a0340d1303926fdbc7cec1a07857d /create_image.sh | |
parent | Started testing GNOME, dies with Perl errors at the moment though (diff) | |
download | gentoaster-841df9efa3b2dc065a269ce943f87a8f4de83000.tar.gz gentoaster-841df9efa3b2dc065a269ce943f87a8f4de83000.tar.bz2 gentoaster-841df9efa3b2dc065a269ce943f87a8f4de83000.zip |
Fixed Stage3 and Portage download
Diffstat (limited to 'create_image.sh')
-rwxr-xr-x | create_image.sh | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/create_image.sh b/create_image.sh index b12ac78..e1e24c3 100755 --- a/create_image.sh +++ b/create_image.sh @@ -15,6 +15,9 @@ DEFAULT_USERNAME="gentoo" DEFAULT_PASSWORD="g3nt00" LOG_FILE="`pwd`/log.txt" +STAGE3_URL="http://distfiles.gentoo.org/releases/x86/current-stage3/stage3-i486-20110607.tar.bz2" +PORTAGE_URL="http://distfiles.gentoo.org/snapshots/portage-latest.tar.bz2" + echo "Starting log at ${LOG_FILE}..." echo "" > ${LOG_FILE} @@ -86,19 +89,19 @@ cd rootfs # Setup Gentoo echo "Downloading Stage 3" -#wget http://gentoo.virginmedia.com/releases/x86/current-stage3/stage3-i686-20110315.tar.bz2 -O stage3.tar.bz2 &>> ${LOG_FILE} +wget ${STAGE3_URL} -O ../stage3.tar.bz2 &>> ${LOG_FILE} echo "Extracting Stage 3" tar jxf ../stage3.tar.bz2 &>> ${LOG_FILE} -#rm stage3.tar.bz2 +rm stage3.tar.bz2 echo "Downloading Portage snapshot" cd usr -#wget http://gentoo.virginmedia.com/snapshots/portage-latest.tar.bz2 &>> ${LOG_FILE} +wget ${PORTAGE_URL} -o ../../portage-latest.tar.bz2 &>> ${LOG_FILE} echo "Extracting Portage snapshot" tar jxf ../../portage-latest.tar.bz2 &>> ${LOG_FILE} -#rm portage-latest.tar.bz2 +rm portage-latest.tar.bz2 echo "Setting up chroot" cd .. @@ -152,12 +155,12 @@ linux32 chroot . /bin/bash -c "echo 'root:${ROOT_PASSWORD}' | chpasswd" &>> ${LO echo "Installing dhcpcd" linux32 chroot . emerge dhcpcd &>> ${LOG_FILE} -echo "Installing Perl" -linux32 chroot . emerge perl &>> ${LOG_FILE} -linux32 chroot . perl-cleaner --all &>> ${LOG_FILE} +#echo "Installing Perl" +#linux32 chroot . emerge perl &>> ${LOG_FILE} +#linux32 chroot . perl-cleaner --all &>> ${LOG_FILE} -echo "Installing GNOME" -linux32 chroot . emerge gnome &>> ${LOG_FILE} +#echo "Installing GNOME" +#linux32 chroot . emerge gnome &>> ${LOG_FILE} echo "Adding default user" linux32 chroot . useradd -g users -G lp,wheel,audio,cdrom,portage -m ${DEFAULT_USERNAME} |