Package: kernel-package
Version: 11.015

Installing a kernel-image build with kernel-package the postinst scripts asks 
if lilo should run even if bootloader=yes is set in kernel-img.conf

The reason is that $explicit_do_loader will never be set in the postrm script:


     $do_bootloader   = "Yes" if /do_bootloader\s*=\s*(yes|true|1)\s*$/ig;
     $explicit_do_loader = "YES" if /do_bootloader\s*=\s*(yes|true|1)\s*$/ig;


Because of the g flag the first lines matches and consumes the line, so that 
the second can not match any more.

To make it work the g flag of the first of those two lines must be removed:

     $do_bootloader   = "Yes" if /do_bootloader\s*=\s*(yes|true|1)\s*$/i;
     $explicit_do_loader = "YES" if /do_bootloader\s*=\s*(yes|true|1)\s*$/ig;



Regards,
-- 
Wolfgang Walter
Studentenwerk München
Anstalt des öffentlichen Rechts



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to