From 8fa786ba892bff6e5ffbb90c9cdb0061d3b32b87 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 7 Mar 2012 18:12:26 +0100 Subject: Avoid calling update-initrd in lb_chroot_hacks if the target system has no initrd, thanks to Hector Oron . --- scripts/build/lb_chroot_hacks | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/build/lb_chroot_hacks') diff --git a/scripts/build/lb_chroot_hacks b/scripts/build/lb_chroot_hacks index 128d6b849..1356112d3 100755 --- a/scripts/build/lb_chroot_hacks +++ b/scripts/build/lb_chroot_hacks @@ -174,7 +174,10 @@ case "${LB_INITRAMFS}" in ;; esac -Chroot chroot "${UPDATE_INITRAMFS_OPTIONS} update-initramfs -k all -t -u" +if [ "${LB_INITRAMFS}" != "none" ] +then + Chroot chroot "${UPDATE_INITRAMFS_OPTIONS} update-initramfs -k all -t -u" +fi # We probably ought to use COMPRESS= in a temporary file in # /etc/initramfs-tools/conf.d/ instead, but it's hard to pass options that -- cgit v1.2.3