Re: [PATCH 1/4] boot-x86: move creation of install.bat out of extra_image

2009-08-07 Thread Ian Campbell
On Fri, 2009-08-07 at 13:33 +0200, Frans Pop wrote:
> On Friday 07 August 2009, Ian Campbell wrote:
> > There is currently only a single caller but soon I will be adding
> > another which does not want install.bat created.
> > ---
> >  tools/boot/squeeze/boot-x86 |5 ++---
> >  1 files changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/tools/boot/squeeze/boot-x86 b/tools/boot/squeeze/boot-x86
> > index 29f5566..0892ed7 100644
> > --- a/tools/boot/squeeze/boot-x86
> > +++ b/tools/boot/squeeze/boot-x86
> > @@ -145,9 +145,6 @@ extra_image () {
> > else
> > wget "$DI_WWW_HOME/cdrom/$image" -O 
> > $CDDIR/$INSTALLDIR/"$image"
> > fi
> > -   kernel_param=
> > -   [ "$dir" = gtk ] && kernel_param="video=vesa:ywrap,mtrr vga=788"
> > -   echo "\\tools\\loadlin.exe \\$INSTALLDIR\\vmlinuz 
> > initrd=initrd.gz
> > $kernel_param" | todos > $CDDIR/$INSTALLDIR/$dir/install.bat fi
> >  }
> >
> > @@ -236,6 +233,8 @@ if [ "$THISTYPE" = "isolinux" ]; then
> > if [ -e boot$N/isolinux/isolinux.cfg.withgtk ]; then
> > mv boot$N/isolinux/isolinux.cfg.withgtk
> > boot$N/isolinux/isolinux.cfg fi
> > +   echo "\\tools\\loadlin.exe \\$INSTALLDIR\\vmlinuz 
> > initrd=initrd.gz
> > video=vesa:ywrap,mtrr vga=788" | todos >
> > $CDDIR/$INSTALLDIR/gtk/install.bat +
> > fi
> > rm -f boot$N/isolinux/isolinux.cfg.with*
> 
> Why was $kernel_param (which was conditional on regular versus gtk) 
> replaced with a hardcoded "video=vesa:ywrap,mtrr vga=788"?

The location of the loadlin bit with the hardcoded video= is within the
same logical scope as the call to extra_image where the condition on gtk
evaluates to true so the output is the same now as it was before. In
fact previously extra_image was only ever called once and GTK was always
true. The non-GTK loadlin bit is hardcoded a bit further up the file.

Ian.

-- 
Ian Campbell
Current Noise: Witchcraft - Schyssta Lögner

Doubt isn't the opposite of faith; it is an element of faith.
-- Paul Tillich, German theologian.


--
To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: [PATCH 1/4] boot-x86: move creation of install.bat out of extra_image

2009-08-07 Thread Frans Pop
On Friday 07 August 2009, Ian Campbell wrote:
> There is currently only a single caller but soon I will be adding
> another which does not want install.bat created.
> ---
>  tools/boot/squeeze/boot-x86 |5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/tools/boot/squeeze/boot-x86 b/tools/boot/squeeze/boot-x86
> index 29f5566..0892ed7 100644
> --- a/tools/boot/squeeze/boot-x86
> +++ b/tools/boot/squeeze/boot-x86
> @@ -145,9 +145,6 @@ extra_image () {
>   else
>   wget "$DI_WWW_HOME/cdrom/$image" -O 
> $CDDIR/$INSTALLDIR/"$image"
>   fi
> - kernel_param=
> - [ "$dir" = gtk ] && kernel_param="video=vesa:ywrap,mtrr vga=788"
> - echo "\\tools\\loadlin.exe \\$INSTALLDIR\\vmlinuz 
> initrd=initrd.gz
> $kernel_param" | todos > $CDDIR/$INSTALLDIR/$dir/install.bat fi
>  }
>
> @@ -236,6 +233,8 @@ if [ "$THISTYPE" = "isolinux" ]; then
>   if [ -e boot$N/isolinux/isolinux.cfg.withgtk ]; then
>   mv boot$N/isolinux/isolinux.cfg.withgtk
> boot$N/isolinux/isolinux.cfg fi
> + echo "\\tools\\loadlin.exe \\$INSTALLDIR\\vmlinuz 
> initrd=initrd.gz
> video=vesa:ywrap,mtrr vga=788" | todos >
> $CDDIR/$INSTALLDIR/gtk/install.bat +
>   fi
>   rm -f boot$N/isolinux/isolinux.cfg.with*

Why was $kernel_param (which was conditional on regular versus gtk) 
replaced with a hardcoded "video=vesa:ywrap,mtrr vga=788"?


-- 
To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



[PATCH 1/4] boot-x86: move creation of install.bat out of extra_image

2009-08-07 Thread Ian Campbell
There is currently only a single caller but soon I will be adding
another which does not want install.bat created.
---
 tools/boot/squeeze/boot-x86 |5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/tools/boot/squeeze/boot-x86 b/tools/boot/squeeze/boot-x86
index 29f5566..0892ed7 100644
--- a/tools/boot/squeeze/boot-x86
+++ b/tools/boot/squeeze/boot-x86
@@ -145,9 +145,6 @@ extra_image () {
else
wget "$DI_WWW_HOME/cdrom/$image" -O 
$CDDIR/$INSTALLDIR/"$image"
fi
-   kernel_param=
-   [ "$dir" = gtk ] && kernel_param="video=vesa:ywrap,mtrr vga=788"
-   echo "\\tools\\loadlin.exe \\$INSTALLDIR\\vmlinuz 
initrd=initrd.gz $kernel_param" | todos > $CDDIR/$INSTALLDIR/$dir/install.bat
fi
 }
 
@@ -236,6 +233,8 @@ if [ "$THISTYPE" = "isolinux" ]; then
if [ -e boot$N/isolinux/isolinux.cfg.withgtk ]; then
mv boot$N/isolinux/isolinux.cfg.withgtk 
boot$N/isolinux/isolinux.cfg
fi
+   echo "\\tools\\loadlin.exe \\$INSTALLDIR\\vmlinuz 
initrd=initrd.gz video=vesa:ywrap,mtrr vga=788" | todos > 
$CDDIR/$INSTALLDIR/gtk/install.bat
+
fi
rm -f boot$N/isolinux/isolinux.cfg.with*
 
-- 
1.6.3.3


-- 
To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org