From 14c5541b67dce5728356e6a6c83b594b648c46fe Mon Sep 17 00:00:00 2001 From: Joachim Wiedorn Date: Fri, 17 Oct 2014 21:54:00 +0200 Subject: [PATCH] Add readme snippet about defragmenting problems --- debian/README.Debian | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/debian/README.Debian b/debian/README.Debian index 9ae005f..a8e8282 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -5,15 +5,15 @@ README for lilo in Debian ** Distribution upgrade ** If you are upgrading or dist-upgrading, it is recommended to run -/sbin/lilo after that. Usually this work will be done by the (new) -hook scripts for kernel and initramfs. +/sbin/lilo after that. Usually this work will be done by the hook +scripts for kernel and initramfs (see /etc/kernel, /etc/initramfs). ** Other installed bootloader ** -Please pay attention to the hook scripts for kernel and initrd, if you +Please pay attention to the hook scripts for kernel and initramfs, if you have also installed another bootloader. With every update of kernel or -initrd these hook scripts will be executed and then Lilo rewrite the MBR. +initramfs these hook scripts will be executed and then Lilo rewrite the MBR. They don't check whether another bootloader is activated. Grub and Grub2 have its own hook scripts which will be executed, too, but @@ -24,6 +24,19 @@ the package information about other installed bootloader for correct configuration. +** XFS defragmenting /boot ** + +On the XFS filesystem (or others too?), there could growing problems with +kernel files (vmlinuz*) in /boot directory while someone defragmenting +partitions. To protect vmlinuz* files from moving to other addresses on the +disk, which would lead to an unbootable system, it is recommended to use +'chattr' if the /boot directory have a XFS filesystem. + +Lilo 24.1 comes with some hook scripts for this case. Go into directory +/usr/lib/lilo/hook and start the Makefile as root with 'make install'. Then +these scripts will ensure that lilo survives when xfs defragments files. + + ** Large initrd files ** Usually LILO loads the initrd file into the first 15MB of memory to -- 2.39.2