Tobias Powalowski wrote:
Am Sonntag, 23. September 2007 schrieb Jason Chu:
Maybe I missed the discussion on this one...
I was trying to work on pacbuild but quickinst doesn't work for me.
If I'm not mistaken, we should have a setup directory in core/os/i686, right? Is there a reason why we don't? Is this all we need to convert over to the new repo layout?
Jason
Im already working on a fix for it, it's not yet finished but today i'll have it i think.
I already fixed it for myself, here is a copy. Cheers, -H #!/bin/sh # $Id: quickinst,v 1.12 2006/01/04 01:48:15 judd Exp $ usage() { echo "quickinst <install_mode> <destdir> <package_directory|server_url>" echo echo "This script is for users who would rather partition/mkfs/mount their target" echo "media manually than go through the routines in the setup script." echo echo "First make sure you have all your filesystems mounted under <destdir>." echo "Then run this script to install all base packages to <destdir>." echo echo "<install_mode> must be either 'ftp' or 'cd'" echo echo "Examples:" echo " quickinst ftp /mnt ftp://ftp.archlinux.org/current/os/i686" echo " quickinst cd /mnt /src/arch/pkg" echo "" exit 0 } INSTMODE=$1 DESTDIR=$2 PKGARG=$3 if [ "$PKGARG" = "" ]; then usage fi # sometimes this gets mounted RO, dunno why /bin/mount -o remount,rw / PACMAN= [ -f /tmp/usr/bin/pacman.static ] && PACMAN=/tmp/usr/bin/pacman.static [ -f /usr/bin/pacman.static ] && PACMAN=/usr/bin/pacman.static if [ "$PACMAN" = "" ]; then cd /tmp if [ "$INSTMODE" = "ftp" ]; then echo "Downloading pacman..." wget $PKGARG/setup/pacman.pkg.tar.gz if [ $? -gt 0 ]; then echo "error: Download failed" exit 1 fi tar -xzf pacman.pkg.tar.gz elif [ "$INSTMODE" = "cd" ]; then echo "Unpacking pacman..." tar -xzf $PKGARG/setup/pacman.pkg.tar.gz fi fi [ -f /tmp/usr/bin/pacman.static ] && PACMAN=/tmp/usr/bin/pacman.static if [ "$PACMAN" = "" ]; then echo "error: Cannot find the pacman.static binary!" exit 1 fi if [ "$INSTMODE" = "ftp" ]; then echo "[core]" >/tmp/pacman.conf echo "Server = $PKGARG" >>/tmp/pacman.conf fi if [ "$INSTMODE" = "cd" ]; then echo "[core]" >/tmp/pacman.conf echo "Server = file://$PKGARG" >>/tmp/pacman.conf fi $PACMAN -r $DESTDIR --noconfirm --config /tmp/pacman.conf -Sy base if [ $? -gt 0 ]; then echo echo "Package installation FAILED." echo exit 1 fi echo echo "Package installation complete." echo echo "You should now install the kernel:" echo " # $PACMAN -r $DESTDIR --config /tmp/pacman.conf -S kernel26" echo echo "Then install a bootloader. Edit the appropriate config file for" echo "your loader, and chroot into your system to install it into the" echo "boot sector:" echo " # mount -o bind /dev $DESTDIR/dev" echo " # mount -t proc none $DESTDIR/proc" echo " # mount -t sysfs none $DESTDIR/sys" echo " # chroot $DESTDIR /bin/bash" echo echo "For GRUB:" echo " # install-grub /dev/hda /dev/hdaX (replace with your boot partition)" echo " (or install manually by invoking the GRUB shell)" echo echo "For LILO:" echo " # lilo" echo echo "Then exit your chroot shell, edit $DESTDIR/etc/fstab and" echo "$DESTDIR/etc/rc.conf, and reboot!" echo exit 0