From 126432d8443d04077d8f30a6600ee3dc95fa597d Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Thu, 26 Jun 2014 12:31:07 +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 | 2 ++ live-build/auto/build | 2 ++ 2 files changed, 4 insertions(+) diff --git a/debian/changelog b/debian/changelog index eca7ae19..257d11d5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ livecd-rootfs (2.219) UNRELEASED; urgency=medium * Drop fdupes analysis: not widely used any more, can be done separately if needed, and very noisy in build logs. + * Make the output kernel/initrd world-readable in a couple more cases, + particularly relevant to ubuntu-defaults-image (LP: #1334616). -- Colin Watson Tue, 24 Jun 2014 17:00:33 +0100 diff --git a/live-build/auto/build b/live-build/auto/build index 0703aa20..197e3113 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -346,11 +346,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