From 2977a432f31dd623053e258688b74069d941514c Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Thu, 26 Jun 2014 12:33:49 +0100 Subject: [PATCH] Make the output kernel/initrd world-readable in a couple more cases, particularly relevant to ubuntu-defaults-image (LP: #1334616). --- debian/changelog | 7 +++++++ live-build/auto/build | 2 ++ 2 files changed, 9 insertions(+) diff --git a/debian/changelog b/debian/changelog index 8f6ee3ae..de72fbbd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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. diff --git a/live-build/auto/build b/live-build/auto/build index 6eb6d104..7ee9a4f8 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -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