boot opts

最後更新: 2021-09-26

前言

* Press <TAB> to add additional options on syslinux

v5 是用 gentoo , v6 開始轉用了 archiso, 所以它們不同 boot options !

目錄

  • V5
    - V5 Options
    - V5 Services
    - ...
  • V8

 


V5 Options

 

The CD-ROM to be fully loaded into memory.

docache

keyboard

setkmap=us

pauses x seconds during the startup to allow slow devices to initialize

scandelay=x

prevents generic hardware auto-detection

nodetect

Do not load the Kernel-Mode-Setting video driver

nomodeset

load the X.Org graphical environment

dostartx

Forces X.Org to use the safe VESA driver instead of the best video driver detected for your video card

forcevesa

Console in high resolution (791: 1024x768)

vga=791

 


V5 Services

 

# This option allows one to start/stop a service at boot time.

initscript=service:action

i.e.

# /etc/init.d/samba start

initscript=samba:start

# /etc/init.d/NetworkManager

initscript=NetworkManager:stop

log

/var/log/initscript.log

initscript: found option initscript=NetworkManager:stop (service=NetworkManager and action=stop
initscript: /etc/init.d/NetworkManager stop --> 0

 


V5 Networking

 

nonm

# To disable the Network-Manager service that conflicts with the standard network command line tools

(ip, ifconfig)

nonet

This will disable the network auto detection at startup

doload=xxx

loads needed kernel modules

doload=3c59x,e1000

dodhcp / nodhcp / dhcphostname=myhost

request a DHCP server provide network attributes

(computer it will run the dhcp client on all interfaces)

nameif=xxx

interface name to give to a particular interface using the mac address.

ie.

nameif=eth0!00:00:00:00:00:01,eth1!00:00:00:00:00:02

P.S.

The pxeboot loader will set BOOTIF to the name of the interface used to boot.

nameif=eth0!BOOTIF

Remark

net.ifnames=0 biosdevname=0

ethx=ipaddr/cidr

# Sets the static IP address of ALL the ethernet interfaces on the system.

i.e.

# eth0=192.168.10.1/24 eth1=192.168.20.1/24

eth0=ipaddr/cidr

similar to ethx=ipaddr/cidr but it configures only one interface at a time.

gateway=ipaddr

dns=ipaddr

 

 


V5 Login (ssh, vnc)

 

# root password (SSH)

rootpass=123456

# VNC Login

vncserver=x:123456

configure the VNC-server and to start it automatically at boot time.

display=0 reserved for X.Org
display=1 on tcp/5901
display=2 on tcp/5902

 


V5 FileSystem

 

nodmraid (Disable dmraid, for some motherboards with built-in RAID controller. )

nomdadm (Disable mdadm, for software RAID)

backstore=?

By default, sysresccd automatically scan removable devices

backstore=alldev    # to scan ALL devices

backstore=off

loadsrm=?

off             # Do not load any SRM module

loadsrm=module1.srm,module2.srm

skipmount=/dev/xxx 

The system mounts all the storage devices at boot time to find the sysrcd.dat file.
(If your hard disk is broken it should not be mounted.)

i.e.

# to ignore these two partitions.

skipmount=/dev/sda1 skipmount=/dev/sda2

cow_label=xxxx

Set the filesystem label where upperdir/workdir files for overlayfs must be stored.

cow_directory=xxxx

Name of the directory where to store changes made on the system.

checksum

will trigger a verification of the squashfs cheksum during the boot so you know if the file has been corrupted

 


V5 boot setting example

 

修改

X:\isolinux\isolinux.cfg

# 5 秒
TIMEOUT 50
ONTIMEOUT MySetting

##### MySetting #####
LABEL MySetting
MENU LABEL 0) SystemRescueCd with My Setting
LINUX rescue64
INITRD initram.igz
APPEND docache setkmap=us rootpass=123456 nomodeset forcevesa vga=791 ethx=192.168.88.175/24 nodmraid nomdadm nodetect backstore=off loadsrm=off nonm net.ifnames=0 biosdevname=0 initscript=NetworkManager:stop
TEXT HELP
IP: 192.168.88.175/24
ENDTEXT

 * If you enter multiple APPEND statements in a single LABEL entry, only the last one will be used.

 


V8

 

File call 的過程

1. /syslinux.cfg

2. /isolinux/isolinux.cfg

3. /sysresccd/boot/syslinux/sysresccd.cfg

DEFAULT select

LABEL select
COM32 boot/syslinux/whichsys.c32
APPEND -pxe- pxe -sys- sys -iso- sys

LABEL pxe
CONFIG boot/syslinux/sysresccd_pxe.cfg

LABEL sys
CONFIG boot/syslinux/sysresccd_sys.cfg

4. /sysresccd/boot/syslinux/sysresccd_sys.cfg

...

Options

# The CD-ROM to be fully loaded into memory. (This requires 2GB)

copytoram

# Keyboard

setkmap=us

# Stop the iptables and ip6table services which are enabled by default

nofirewall

# Do not load the Kernel-Mode-Setting video driver

# use BIOS modes instead until X is loaded (lower resolution)

nomodeset

# root password (SSH)

rootpass=123456

 


Doc

 

https://datahunter.org/syslinux

 

 

 

Creative Commons license icon Creative Commons license icon