Make --initramfs none work more consistently (Closes: #627887).
This commit is contained in:
parent
8b05781dbc
commit
6bcb29a25c
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -53,6 +53,11 @@ case "${LB_INITRAMFS}" in
|
|||
INITFS="live"
|
||||
SUFFIX="packages"
|
||||
;;
|
||||
|
||||
*)
|
||||
INITFS="boot"
|
||||
SUFFIX="packages"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Add filesystem.packages
|
||||
|
|
|
@ -87,6 +87,10 @@ case "${LB_INITRAMFS}" in
|
|||
live-boot)
|
||||
DESTDIR="binary/live"
|
||||
;;
|
||||
|
||||
*)
|
||||
DESTDIR="binary/boot"
|
||||
;;
|
||||
esac
|
||||
|
||||
Check_multiarchitectures
|
||||
|
|
|
@ -69,6 +69,10 @@ then
|
|||
live-boot)
|
||||
ORIGDIR="binary/live"
|
||||
;;
|
||||
|
||||
*)
|
||||
ORIGDIR="binary/boot"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Find defaults
|
||||
|
|
|
@ -56,6 +56,10 @@ case "${LB_INITRAMFS}" in
|
|||
live-boot)
|
||||
INITFS="live"
|
||||
;;
|
||||
|
||||
*)
|
||||
INITFS="boot"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Creating directory
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue