Autorun has been rewritten in SystemRescueCd-1.0.0 (0.4.4-beta4 and newer). Autorun is the feature that allow you to execute your own scripts when sysresccd starts. The scripts can be copied in sysresccd by doing an customized version. They can also be copied from a partition on your harddisk / usb-key or downloaded from an NFS / SMB server. The new version also let you run scripts located on an HTTP server.

For example, by asking autorun to execute a script located on a web server, you can run an automatic backup of your system. All you have to do is to develop the backup script, make it available on an internal http server like apache, and start systemrescuecd using autorun.

Previously the autorun (implemented in /sbin/autorun) was developed in bash shell, and it was able to execute scripts from the cdrom, the hard disk, or from an nfs/smb file server. The new autorun has been written in python and it also let you execute scripts from a web server. You may read the official autorun chapter in the handbook for more details.

Here is how to use autorun with scripts located on a http server:

  • install your script on a web server (eg:
  • ensure sysresccd has the right automatic network boot options (such as ethx/gateway/dns or dodhcp)
  • boot sysresccd with the ar_source= boot option.

It’s also important to notice the nfs/smb syntax changed:

  • old nfs syntax: ar_source=nfs-srv:/path/to/dir
  • new nfs syntax:ar_source=nfs://nfs-srv:/path/to/dir
  • old smb syntax: ar_source=//smb-srv:/path/to/dir
  • new smb syntax:ar_source=smb://smb-srv:/path/to/dir

Version 1.0.0 will introduce new autorun options:

  • ar_ignorefail: continue to execute the scripts chain even if a script failed (returned a non-zero status)
  • ar_nodel: do not delete the temporary copy of the autorun scripts located in /var/autorun/tmp after execution
  • ar_disable: completely disable autorun, the simple ‘autorun’ script will not be executed