Make --initramfs none work more consistently (Closes: #627887).

This commit is contained in:
Colin Watson 2011-06-08 10:07:26 +02:00 committed by Daniel Baumann
parent 8b05781dbc
commit 6bcb29a25c
9 changed files with 55 additions and 5 deletions

View File

@ -68,7 +68,7 @@ Grub_live_entry ()
APPEND="${4}"
LINUX_LIVE="${LINUX_LIVE}\ntitle\t\tDebian GNU/Linux - ${LABEL}"
LINUX_LIVE="${LINUX_LIVE}\nkernel\t\t/${KERNEL} boot=${INITFS} config LB_BOOTAPPEND_LIVE ${APPEND}"
LINUX_LIVE="${LINUX_LIVE}\nkernel\t\t/${KERNEL} ${INITFS:+boot=${INITFS} }config LB_BOOTAPPEND_LIVE ${APPEND}"
LINUX_LIVE="${LINUX_LIVE}\ninitrd\t\t/${INITRD}"
}
@ -125,6 +125,10 @@ case "${LB_INITRAMFS}" in
live-boot)
INITFS="live"
;;
*)
INITFS=""
;;
esac
# Setting destination directory
@ -138,6 +142,10 @@ case "${LB_BINARY_IMAGES}" in
live-boot)
DESTDIR_LIVE="binary/live"
;;
*)
DESTDIR_LIVE="binary/boot"
;;
esac
DESTDIR_INSTALL="binary/install"

View File

@ -68,7 +68,7 @@ Grub_live_entry ()
APPEND="${4}"
LINUX_LIVE="${LINUX_LIVE}\nmenuentry \"Debian GNU/Linux - ${LABEL}\" {"
LINUX_LIVE="${LINUX_LIVE}\nlinux\t\t/${KERNEL} boot=${INITFS} config LB_BOOTAPPEND_LIVE ${APPEND}"
LINUX_LIVE="${LINUX_LIVE}\nlinux\t\t/${KERNEL} ${INITFS:+boot=${INITFS} }config LB_BOOTAPPEND_LIVE ${APPEND}"
LINUX_LIVE="${LINUX_LIVE}\ninitrd\t\t/${INITRD}"
LINUX_LIVE="${LINUX_LIVE}\n}"
}
@ -99,6 +99,10 @@ case "${LB_INITRAMFS}" in
live-boot)
INITFS="live"
;;
*)
INITFS=""
;;
esac
# Setting destination directory
@ -112,6 +116,10 @@ case "${LB_BINARY_IMAGES}" in
live-boot)
DESTDIR_LIVE="binary/live"
;;
*)
DESTDIR_LIVE="binary/live"
;;
esac
DESTDIR_INSTALL="binary/install"

View File

@ -53,6 +53,11 @@ case "${LB_INITRAMFS}" in
INITFS="live"
SUFFIX="packages"
;;
*)
INITFS="boot"
SUFFIX="packages"
;;
esac
# Add filesystem.packages

View File

@ -87,6 +87,10 @@ case "${LB_INITRAMFS}" in
live-boot)
DESTDIR="binary/live"
;;
*)
DESTDIR="binary/boot"
;;
esac
Check_multiarchitectures

View File

@ -69,6 +69,10 @@ then
live-boot)
ORIGDIR="binary/live"
;;
*)
ORIGDIR="binary/boot"
;;
esac
# Find defaults

View File

@ -56,6 +56,10 @@ case "${LB_INITRAMFS}" in
live-boot)
INITFS="live"
;;
*)
INITFS="boot"
;;
esac
# Creating directory

View File

@ -82,7 +82,7 @@ Silo_live_entry ()
LINUX_LIVE="${LINUX_LIVE}\nimage=${DIRECTORY}/${KERNEL}\n"
LINUX_LIVE="${LINUX_LIVE}\t label=${LABEL}\n"
LINUX_LIVE="${LINUX_LIVE}\t initrd=${DIRECTORY}/${INITRD}\n"
LINUX_LIVE="${LINUX_LIVE}\t append=\"boot=${INITFS} config LB_BOOTAPPEND_LIVE ${APPEND}\"\n"
LINUX_LIVE="${LINUX_LIVE}\t append=\"${INITFS:+boot=${INITFS} }config LB_BOOTAPPEND_LIVE ${APPEND}\"\n"
}
Silo_install_entry ()
@ -117,6 +117,11 @@ case "${LB_INITRAMFS}" in
INITFS="live"
DESTDIR_LIVE="binary/live"
;;
*)
INITFS=""
DESTDIR_LIVE="binary/boot"
;;
esac
# Creating directory

View File

@ -72,7 +72,7 @@ Yaboot_live_entry ()
LINUX_LIVE="${LINUX_LIVE}\nimage=${DIRECTORY}/${KERNEL}\n"
LINUX_LIVE="${LINUX_LIVE}\tlabel=${LABEL}\n"
LINUX_LIVE="${LINUX_LIVE}\tinitrd=${DIRECTORY}/${INITRD}\n"
LINUX_LIVE="${LINUX_LIVE}\tappend=\"boot=${INITFS} config LB_BOOTAPPEND_LIVE ${APPEND}\"\n"
LINUX_LIVE="${LINUX_LIVE}\tappend=\"${INITFS:+boot=${INITFS} }config LB_BOOTAPPEND_LIVE ${APPEND}\"\n"
LINUX_LIVE="${LINUX_LIVE}\tinitrd-size=10240\n"
}
@ -132,6 +132,10 @@ case "${LB_INITRAMFS}" in
live-boot)
INITFS="live"
;;
*)
INITFS=""
;;
esac
# Setting destination directory
@ -145,6 +149,10 @@ case "${LB_BINARY_IMAGES}" in
live-boot)
DESTDIR_LIVE="binary/live"
;;
*)
DESTDIR_LIVE="binary/boot"
;;
esac
DESTDIR_INSTALL="binary/install"

View File

@ -214,9 +214,13 @@ case "${LB_INITRAMFS}" in
live-boot)
ID="1000"
;;
*)
ID=""
;;
esac
if [ -d chroot/home/${LB_USERNAME} ]
if [ -d chroot/home/${LB_USERNAME} ] && [ "${ID}" ]
then
chown -R --quiet ${ID}:${ID} chroot/home/${LB_USERNAME}
fi