postinst: Report success even when update-grub fails, this is needed for installation to work inside live systems. (Closes: #850601).

This commit is contained in:
Aurélien COUDERC
2017-01-09 19:16:33 +00:00
parent b5c5317fd0
commit b32f741bd3
2 changed files with 7 additions and 1 deletions

2
debian/changelog vendored
View File

@@ -1,6 +1,8 @@
desktop-base (9.0.1) UNRELEASED; urgency=medium
[ Aurélien COUDERC ]
* postinst: Report success even when update-grub fails, this is needed
for installation to work inside live systems. (Closes: #850601).
* Plymouth/{softWaves,Lines,Joy}: provide fsckd progress support.
(Closes: #850181)
* Plymouth/softWaves: raise messages and password field a little.

6
debian/postinst vendored
View File

@@ -201,7 +201,11 @@ EOF
# Ensure the background image file has actually been written to disc
# before updating.
sync
update-grub
# Report success whatever grub return status. This is needed at least
# in live systems fon installation to succeed (see #850601).
# Until we find a better solution like detecting were in a live image
# and not calling update-grub at all.
update-grub || echo "Updating grub failed, report success anyway!"
fi
if which update-initramfs > /dev/null; then