[syslinux] pxeboot to runlevel 4

Klaus Franken Klaus.Franken at strukturpunkt.de
Thu Apr 14 11:55:32 PDT 2005


Am Donnerstag, 14. April 2005 19:55 schrieb Jim Cromie:

> Im trying to boot to runlevel 4 explicitly, using this stanza: ie with a
> single 4 at end of APPEND line.
>
> LABEL   2.6.11-r10c2-soekris-v1
>   MENU LABEL    ^j.  runlevel 4  2.6.11-r10c2-soekris-v1
>   # 4 MENU DEFAULT
>   KERNEL        vmlinuz-2.6.11-r10c2-soekris-v1
>   APPEND        console=ttyS0,19200n81 root=/dev/nfs
> nfsroot=192.168.42.1:/nfshost/foo
> nfsaddrs=192.168.42.100:192.168.42.1:192.168.42.1:255.255.255.0:soekris:eth
>0 panic=5 initrd=initrd-2.6.11-r10c2-soekris-v1.img 4
>
>
> This usually works for grub on my laptop, but doesnt in pxelinux 308-pre7.
> I havent gone back to earlier versions, I wanted to check my
> understanding 1st.
>
> Is a single number on APPEND line a universal way (grub, lilo, pxelinux)
> to specify a runlevel ?

Yes.
But neither the boot loader nor the kernel are involved by this. This paramter 
is checked by the init process (pid 1, usually /sbin/init).


> I saw no mention of it in linux-*/Documentation/kernel-parameters.txt,
> and it seems like an omission if it is actually true.
>
> theres also no mention in man inittab whether 'initdefault' can be
> overridden
> by kernel-command line, though I know Ive done it.
>
> the command-line received by the kerenel is (for another similar stanza)
>
> Kernel command line: console=ttyS0,19200n81 root=/dev/nfs
> nfsroot=192.168.42.1:/nfshost/foo
> nfsaddrs=192.168.42.100:192.168.42.1:192.168.42.1:255.255.255.0:soekris:eth
>0 panic=5 initrd=initrd-2.6.10-r10c2-soekris-int-v1.img
> BOOT_IMAGE=vmlinuz-2.6.10-r10c2-soekris-int-v1

Check ´cat /proc/cmdline´.
Maybe your append line is shorten.
Try to set the "4" earlier in the append line.
>
> The '4' appears to be getting trashed by the BOOT_IMAGE info appended
> automatically.
> I have no IPAPPEND statement in the pxe boot config

-- 
        Klaus Franken, StrukturPunkt Beck & Franken GdbR
        E-Mail: Klaus.Franken at StrukturPunkt.de
        PGP: 004B 1943 129B 5808 E714  296B E022 4E82 5814 A05E
        WWW: http://www.StrukturPunkt.de/
        Post: Mohrenstr. 2, 90762 Fürth
        Tel: 0911 / 7 87 44 70




More information about the Syslinux mailing list