|
|
|
@ -849,13 +849,13 @@ done
|
|
|
|
|
NUMFLAVOURS="$(set -- $LB_LINUX_FLAVOURS; echo $#)"
|
|
|
|
|
if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then
|
|
|
|
|
# only one kernel flavour
|
|
|
|
|
if [ -f "binary/$INITFS/vmlinuz" ]; then
|
|
|
|
|
if [ -f "binary/$INITFS/vmlinuz" ] && ! [ -h "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 [ -f "binary/$INITFS/initrd.lz" ]; then
|
|
|
|
|
if [ -f "binary/$INITFS/initrd.lz" ] && ! [ -h "binary/$INITFS/initrd.lz" ]; then
|
|
|
|
|
ln "binary/$INITFS/initrd.lz" "$PREFIX.initrd"
|
|
|
|
|
chmod 644 "$PREFIX.initrd"
|
|
|
|
|
else
|
|
|
|
|