Skip to content

Command line parameters

crim50n edited this page Oct 4, 2023 · 14 revisions

Command line parameters

Boot parameters (kernel parameters) are used to influence the MiniOS boot process. Some of them are common to all Linux distributions, others are specific only to MiniOS. You can use them to disable a desired type of hardware detection, to start MiniOS from a hard disk, etc. To use the options with syslinux, press Esc to activate the boot menu while MiniOS is running as usual, and when you see the boot menu, press Tab, edit the boot options, then press Enter. For grub, press E to edit, then F10 to boot. A command line will appear at the bottom of the screen, at the end of which you can edit or add new boot parameters. Some grub parameters cannot be changed interactively. To change them, edit boot/grub/grub.cfg.

Option Value Example
from= Load MiniOS data from a specified directory, device, or even an ISO file. from=/minios/
from=/Downloads/minios.iso
from=http://domain.com/minios.iso
from=/dev/sr0/minios
from=/dev/disk/by-label/MyFlash/minios
from=ask
from=ask/customdir
load= Enable loading of certain .sb modules specified as a regular expression. load=00-core
load=core,minios,kernel,firmware
load=00,01,02
load=00-03
noload= Disable loading of certain .sb modules specified as a regular expression. noload=05-xfce-apps
noload=xfce-apps,firefox
noload=05,06
noload=04-06
nosound Disable sound at startup (used only in the Fluxbox environment variant). nosound
perchdir= Select a profile or perform an action with a profile. Can take as a value the profile number or the values resume (resume previous session), new (start new session), ask (select session at startup). If the perchdir option is missing, the loading will be performed in "clean" mode. perchdir=1
perchdir=resume
perchdir=new
perchdir=ask
perchdir=/dev/sda1/changes
perchdir=/dev/disk/by-label/MyFlash/changes
perchdir=askdisk
perchdir=askdisk/customdir
perchsize= The size of the DynFileFS virtual file system, which is used to store data on non-Linux file systems such as FAT32 and NTFS. By default, a 16 GB file system is created. If your disk is smaller, you should specify the required size in MB in the bootloader configuration file. perchsize=4000
perchsize=32000
dynfilefs Force DynFileFS permanent change files even on Linux filesystems. dynfilefs
toram Activate the copy to RAM function. toram
text Disable X startup and remain only in text console. text
debug Enable debugging when starting MiniOS. debug
nozram Disable zram swap. nozram
zramsize= Specify zram swap size in MB. zramsize=512
zramsize=2048
zramcomp= Specify zram compression type. For Debian 12, the available options are: lzo lzo-rle lz4 lz4hc zstd, default is lzo-rle. zramcomp=lzo
zramcomp=lz4
root_password= Root user password. root_password=toor
user_name= User name. If you specify the user name root, then the user profile will not be created, the user_password parameter will be ignored. In the current version, this parameter can be equal to either root or live. user_name=live
user_password= User password. user_password=evil
host_name= System host name. host_name=minios
default_target= Systemd target. You can learn more about systemd targets here. default_target=graphical
default_target=multi-user
default_target=rescue
enable_services= Enable services at boot. enable_services=ssh,firewalld
disable_services= Disable services at boot. disable_services=docker
ssh_key= Name of the ssh public key file that must be located in the system folder on the media (along with the main .sb modules). By default, the system looks for a file named authorized_keys. ssh_key=my_public_keys
scripts= Scripts are launched when reaching multi-user target (init 3). To run scripts, they must be located in the minios/scripts folder. The scripts variable can be equal to true or false. By default, when scripts are found in the specified folder, the system launches scripts in alphabetical order in interactive mode on tty2. If the default target is graphical, the desktop environment is started, you must manually switch to tty2 with Ctrl+Alt+F2 to observe the script execution. With scripts=false, scripts are not loaded even if they are located in the scripts folder. scripts=true
scripts=false
cloud Special mode for running as a cloud-init host. cloud
hide_credentials Hide credentials displayed as a hint in the console when starting the system. hide_credentials
autologin= Enable/disable automatic login to the system. Enabled by default. autologin=true
autologin=false

Separate commands with spaces. See the man bootparam reference pages for additional kernel parameters common to all Linux distributions.