I want to extend an existing Debian 6.0 system so that it is able to automatically fix a corrupt root file system by restoring a separate image. That process should start automatically instead of the typical
UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
error message (so that the machine can be left unattended).
I was expecting that some script in initrd.img
is responsible for checking the root fs (and handling error cases like the one above), but I can't find it. Is that job perhaps done by the Kernel itself or the boot loader (GRUB in this case) ?
(I'm using initramfs
)