Merge ~smoser/ubuntu/+source/grub-legacy-ec2:fix/1786244-fix-read-from-stderr-upgrade-fail into ubuntu/+source/grub-legacy-ec2:ubuntu/devel
Proposed by
Scott Moser
Status: | Merged |
---|---|
Merged at revision: | 552cf6beafab0ec4b6ffe7b3c0a0c96af5083d6f |
Proposed branch: | ~smoser/ubuntu/+source/grub-legacy-ec2:fix/1786244-fix-read-from-stderr-upgrade-fail |
Merge into: | ubuntu/+source/grub-legacy-ec2:ubuntu/devel |
Diff against target: |
35 lines (+12/-2) 2 files modified
debian/changelog (+7/-0) debian/update-grub-legacy-ec2 (+5/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christian Ehrhardt (community) | Approve | ||
Review via email: mp+360897@code.launchpad.net |
Commit message
Do not attempt to read from stderr, only from stdin and if it is a terminal.
Previously, if /boot/grub/menu.lst did not exist, then
the a postinst would attempt read from stderr, which is not likely
opened for reading. This does two things:
a.) reads from stdin (which makes more sense)
b.) only attempts to do so if input is a terminal.
If not 'a' and 'b' then write /boot/grub/menu.lst from template
rather than exiting fail.
LP: #1786244
Description of the change
see commit message
To post a comment you must log in.
The Change itself LGTM, thanks for working that out.
The changelog is currently not directed at anything, please remember to update that according to what you want to upload to.