Make the output kernel/initrd world-readable in a couple more cases,

particularly relevant to ubuntu-defaults-image (LP: #1334616).
This commit is contained in:
Colin Watson 2014-06-26 12:33:49 +01:00
parent 087ea23f62
commit 2977a432f3
2 changed files with 9 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
livecd-rootfs (2.65.12) UNRELEASED; urgency=medium
* Make the output kernel/initrd world-readable in a couple more cases,
particularly relevant to ubuntu-defaults-image (LP: #1334616).
-- Colin Watson <cjwatson@ubuntu.com> Thu, 26 Jun 2014 12:33:23 +0100
livecd-rootfs (2.65.11) precise; urgency=medium
* Move from lts-raring to lts-saucy packages for the point release.

View File

@ -342,11 +342,13 @@ if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then
# only one kernel flavour
if [ -e "binary/$INITFS/vmlinuz" ]; then
ln "binary/$INITFS/vmlinuz" "$PREFIX.kernel"
chmod 644 "$PREFIX.kernel"
else
ln -sf "$PREFIX.kernel-$LB_LINUX_FLAVOURS" "$PREFIX.kernel"
fi
if [ -e "binary/$INITFS/initrd.lz" ]; then
ln "binary/$INITFS/initrd.lz" "$PREFIX.initrd"
chmod 644 "$PREFIX.initrd"
else
ln -sf "$PREFIX.initrd-$LB_LINUX_FLAVOURS" "$PREFIX.initrd"
fi