[arch-general] Fwd: AIF through proxy
Andre "Osku" Schmidt
andre.osku.schmidt at googlemail.com
Fri May 21 20:16:33 EDT 2010
or i fail in using gmail...
---------- Forwarded message ----------
From: Andre "Osku" Schmidt <andre.osku.schmidt at googlemail.com>
Date: Sat, May 22, 2010 at 2:04 AM
Subject: Re: [arch-general] AIF through proxy
To: Dieter Plaetinck <dieter at plaetinck.be>
On Fri, May 21, 2010 at 10:56 PM, Dieter Plaetinck <dieter at plaetinck.be> wrote:
> On Fri, 21 May 2010 22:41:12 +0200
> "Andre \"Osku\" Schmidt" <andre.osku.schmidt at googlemail.com> wrote:
>> >> just gives me the usage info, without any
>> >> errors... and also the "Invalid URL scheme" errors that i see in
>> >> tty7 are nowhere to find in /var/log/*
>> > what i would do in a case like this is just monitor the output of
>> > 'pstree' to see which processes is running (ie wget, pacman, ..),
>> > then you can debug the networking issue from there.
>> oooh! you learn new things every day :)
>> super tip. thanks! i got something, maybe
>> pstree shows (when it hangs in url scheme error)
>> aif /sbin/aif -p automatic -c /root/pacinst.aif -d -l
>> |--pacman --root /mnt --config /tmp/pacman.conf -Sy
>> and as according to some forum post (and it seems to work only with
>> this) i had to uncomment:
>> XferCommand = /usr/bin/wget ...
>> in /etc/pacman.conf to get pacman to work on the installer image
>> console. and now looking at the /tmp/pacman.conf, this option is
>> but as i assumed (and test showed) the /tmp/pacman.conf gets newly
>> generated on every aif run. so i cant edit that.
>> what file could i edit to get that xfercommand in /tmp/pacman.conf
>> (this looks even closer, OMG! /me is crossing fingers... :)
> another tip: just grep in the aif source code and you'll see.
> if you grep for '/tmp/pacman.conf' you'll see there is a function
> target_write_pacman_conf in lib-pacman.sh, like any other function you
> can override this with your own.
awesome tip! many thanks, again!
at line 72 in /usr/lib/aif/core/libs/lib-pacman.sh i added:
XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
and aif gets packets though squid! and whats even better, pacproxy.py
works too, YAY!
going to bed tired and happy :)
More information about the arch-general