Rescue System

From RockWiki

Jump to: navigation, search

The Rescue System

The ROCK Linux "advanced rescue system in a tar" is a sophisticated general purpose rescue system.

Building that target results in an initrd.img (stage1) and system.tar.bz2 (stage2).

General mode of operation:

  • kernel boots with stage1 as initial ramdisk
  • stage1 mounts a tmpfs filesystem
  • stage1 reads some kernel parameters and gets stage2 somehow
  • stage2 is extracted into tmpfs
  • stage1 does chroot+pivot_root into tmpfs
  • busybox init or alternative init (depends on stage2init kernel param) runs

Without specific stage2init param you will get a busybox init with gettys enabled.

Kernel parameters (with their defaults):

  • system=/mnt_boot/rescue/system.tar.bz2
  • overlay=/mnt_boot/rescue/overlay.tar.bz2
  • boot=/dev/discs/disc0/part1
  • stage2init=/sbin/init
  • system_failure=shell (rock-config option)
  • overlay_failure=ignore (rock-config option)
Personal tools