[arch-releng] [PATCH 1/1] launch interactive shell if ipconfig fails

Christian Hesse list at eworm.de
Thu May 28 15:23:04 UTC 2015


Gerardo Exequiel Pozzi <vmlinuz386 at gmail.com> on Thu, 2015/05/28 12:07:
> On 05/27/2015 07:30 AM, Christian Hesse wrote:
> > From: Christian Hesse <mail at eworm.de>
> > 
> > Signed-off-by: Christian Hesse <mail at eworm.de>
> > ---
> >  archiso/initcpio/hooks/archiso_pxe_common | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/archiso/initcpio/hooks/archiso_pxe_common
> > b/archiso/initcpio/hooks/archiso_pxe_common index d8ac709..59828c7 100644
> > --- a/archiso/initcpio/hooks/archiso_pxe_common
> > +++ b/archiso/initcpio/hooks/archiso_pxe_common
> > @@ -25,7 +25,7 @@ run_hook () {
> >          fi
> >  
> >          # setup network and save some values
> > -        ipconfig "ip=${ip}"
> > +        ipconfig "ip=${ip}" || launch_interactive_shell
> >  
> >          . /tmp/net-*.conf
> >  
> > 
> 
> Hi,
> 
> I do not remember now, this can fail silently? In this case a message
> before launch_ should be printed.

In my case it complained... Anything about "no network interface to
configure" or similar. Would you like to have an extra message?
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-releng/attachments/20150528/1c9ba73a/attachment.asc>


More information about the arch-releng mailing list