bugGNU GRUB - Bugs: bug #52236, update-grub processing of...


You are not allowed to post comments on this tracker with your current authentication level.

bug #52236: update-grub processing of lilo.conf append line contains a space at the end

Submitted by:  Matthew Melton <hairy_marmite>
Submitted on:  Mon 16 Oct 2017 02:44:55 PM UTC  
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Matt Melton
Open/Closed:  Open Release: 
Release:  2.02 Reproducibility:  None
Planned Release:  None

Mon 16 Oct 2017 02:44:55 PM UTC, original submission:

This tripped me up during an update (on ubuntu 17.04 grub2/zesty-updates 2.02~beta3-4ubuntu2.2 amd64).

My lilo.conf on another disk caused the upgrade-grub part of the upgrade to fail.
After some quick research documented here:
I found the reason, the following part of my lilo.conf:

image = /boot/vmlinuz
label = Linux

Contains a space after the last quote in the append line.
Lilo itself does not worry about this and boots properly.
The dequote function in the bash script "/usr/lib/linux-boot-probes/mounted/50lilo" that parses the lilo.conf file only removes the second quote on the append line if it is the last character on the line.

So essentially a non-critical syntax error in lilo.conf,
caused the update of grub to fail (this was during a kernel security upgrade).

If you need any further details, let me know and I'll do my best to provide them.

Possible fix would be to trim any extra spaces at the end of the line before (or during ) the call to dequote.

All the best


Matthew Melton <hairy_marmite>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by hairy_marmite (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.4