Merge lp:~xnox/livecd-rootfs/fix-fs-label into lp:livecd-rootfs

Proposed by Dimitri John Ledkov
Status: Merged
Merged at revision: 1554
Proposed branch: lp:~xnox/livecd-rootfs/fix-fs-label
Merge into: lp:livecd-rootfs
Diff against target: 29 lines (+11/-1)
2 files modified
debian/changelog (+10/-0)
live-build/functions (+1/-1)
To merge this branch: bzr merge lp:~xnox/livecd-rootfs/fix-fs-label
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Francis Ginther (community) Approve
Philip Roche (community) Approve
Canonical Foundations Team Pending
Review via email: mp+332053@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Philip Roche (philroche) wrote :

Following conversation on IRC this looks good. +1

review: Approve
Revision history for this message
Steve Langasek (vorlon) :
review: Needs Fixing
Revision history for this message
Francis Ginther (fginther) wrote :

As discussed in IRC, I think this should tolerate both the empty and non-empty root values.

Revision history for this message
Francis Ginther (fginther) wrote :

That looks good.

review: Approve
Revision history for this message
Steve Langasek (vorlon) :
review: Approve
lp:~xnox/livecd-rootfs/fix-fs-label updated
1554. By Dimitri John Ledkov

Now that grub-related diversions have been factored out in 2.466
instead of having bogus root=stuff arg generated in grub.cfg, it is
actually empty. Therefore update the sed command to make the arg in
the root= token optional. This should resolve non-booting livecd cpc
images.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2017-10-09 01:49:34 +0000
+++ debian/changelog 2017-10-10 12:23:40 +0000
@@ -1,3 +1,13 @@
1livecd-rootfs (2.471) UNRELEASED; urgency=medium
2
3 * Now that grub-related diversions have been factored out in 2.466
4 instead of having bogus root=stuff arg generated in grub.cfg, it is
5 actually empty. Therefore update the sed command to make the arg in
6 the root= token optional. This should resolve non-booting livecd cpc
7 images.
8
9 -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 10 Oct 2017 12:53:43 +0100
10
1livecd-rootfs (2.470) artful; urgency=medium11livecd-rootfs (2.470) artful; urgency=medium
212
3 * Add initial support for preinstallation of snaps in images, and13 * Add initial support for preinstallation of snaps in images, and
414
=== modified file 'live-build/functions'
--- live-build/functions 2017-10-05 06:50:26 +0000
+++ live-build/functions 2017-10-10 12:23:40 +0000
@@ -281,7 +281,7 @@
281 then281 then
282 return 0282 return 0
283 fi283 fi
284 sed -i -e "s,root=[^ ]\+,root=LABEL=${fs_label}," \284 sed -i -e "s,root=[^ ]*,root=LABEL=${fs_label}," \
285 "$CHROOT_ROOT/boot/grub/grub.cfg"285 "$CHROOT_ROOT/boot/grub/grub.cfg"
286}286}
287287

Subscribers

People subscribed via source and target branches