Get rid of the automatic appending of "auto". syslinux-1.54-pre3
authorhpa <hpa>
Wed, 28 Mar 2001 21:25:07 +0000 (21:25 +0000)
committerhpa <hpa>
Wed, 28 Mar 2001 21:25:07 +0000 (21:25 +0000)
NEWS
ldlinux.asm
pxelinux.asm
syslinux.doc

diff --git a/NEWS b/NEWS
index 75cd5cc..f419bae 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,9 @@ Changes in 1.54:
          stupid mode ("syslinux -s").
        * PXELINUX: Document further some of the pathologies with old
          PXE stacks.
+       * When specifying a "default" command line, no longer
+         automatically appent "auto".  See the "DEFAULT" command in
+         syslinux.doc for more information.
 
 Changes in 1.53:
        * PXELINUX: Rename pxelinux.bin to pxelinux.0, to match what
index 39301e7..e701b38 100644 (file)
@@ -1187,9 +1187,8 @@ parse_config:
 
 pc_default:    mov di,default_cmd              ; "default" command
                call getline
-               mov si,auto_cmd                 ; add "auto"+null
-                mov cx,auto_len
-               rep movsb
+               xor al,al
+               stosb                           ; null-terminate
                jmp short parse_config
 
 pc_append:      cmp word [VKernelCtr],byte 0   ; "append" command
@@ -3809,10 +3808,8 @@ A20Type          dw A20_DUNNO            ; A20 type unknown
 ; Stuff for the command line; we do some trickery here with equ to avoid
 ; tons of zeros appended to our file and wasting space
 ;
-linuxauto_cmd  db 'linux '
-auto_cmd       db 'auto',0
+linuxauto_cmd  db 'linux auto',0
 linuxauto_len   equ $-linuxauto_cmd
-auto_len        equ $-auto_cmd
 boot_image      db 'BOOT_IMAGE='
 boot_image_len  equ $-boot_image
                 align 4, db 0          ; For the good of REP MOVSD
index 6a93754..726af0b 100644 (file)
@@ -864,9 +864,8 @@ parse_config:
 
 pc_default:    mov di,default_cmd              ; "default" command
                call getline
-               mov si,auto_cmd                 ; add "auto"+null
-                mov cx,auto_len
-               rep movsb
+               xor al,al
+               stosb                           ; null-terminate
                jmp short parse_config
 
 pc_append:      cmp word [VKernelCtr],byte 0   ; "append" command
@@ -4335,10 +4334,8 @@ IPAppend db 0                    ; Default IPAPPEND option
 ; Stuff for the command line; we do some trickery here with equ to avoid
 ; tons of zeros appended to our file and wasting space
 ;
-linuxauto_cmd  db 'linux '
-auto_cmd       db 'auto',0
+linuxauto_cmd  db 'linux auto',0
 linuxauto_len   equ $-linuxauto_cmd
-auto_len        equ $-auto_cmd
 boot_image      db 'BOOT_IMAGE='
 boot_image_len  equ $-boot_image
                 align 4, db 0          ; For the good of REP MOVSD
index c76bcec..a886f08 100644 (file)
@@ -98,12 +98,16 @@ PXELINUX.
 DEFAULT kernel options...
         Sets the default command line.  If SYSLINUX boots automatically,
         it will act just as if the entries after DEFAULT had been typed
-        in at the "boot:" prompt, except that the option "auto" is
-        automatically added, indicating an automatic boot.
+        in at the "boot:" prompt.
 
         If no configuration file is present, or no DEFAULT entry is
-        present in the config file, the default is kernel name "linux",
-        with no options.
+        present in the config file, the default is "linux auto".
+
+       NOTE: Earlier versions of SYSLINUX used to automatically
+       append the string "auto" to whatever the user specified using
+       the DEFAULT command.  As of version 1.54, this is no longer
+       true, as it caused problems when using a shell as a substitute
+       for "init."  You may want to include this option manually.
 
 APPEND options...
         Add one or more options to the kernel command line.  These are