From ecfcd4308ca6d58198e19fc41da2df00693c693f Mon Sep 17 00:00:00 2001 From: Oliver Grawert <ogra@ubuntu.com> Date: Thu, 22 Nov 2012 01:23:29 +0100 Subject: [PATCH] Import patches-unapplied version 2.104 to ubuntu/raring-proposed Imported using git-ubuntu import. Changelog parent: 394b1e11161e9779a7e0e0ae40fe64b64a75c4e4 New changelog entries: * use a subarch based approach for the ac100 and nexus7 bootimg.cfg files * create a media-info file and place it inside the tarball installer initramfs for copying it to the target system on successfull decompression (LP: #1080747) --- debian/changelog | 9 +++++++++ live-build/auto/build | 11 ++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 75e8e720..c919f4e3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +livecd-rootfs (2.104) raring; urgency=low + + * use a subarch based approach for the ac100 and nexus7 bootimg.cfg files + * create a media-info file and place it inside the tarball installer + initramfs for copying it to the target system on successfull decompression + (LP: #1080747) + + -- Oliver Grawert <ogra@ubuntu.com> Thu, 22 Nov 2012 01:23:29 +0100 + livecd-rootfs (2.103) raring; urgency=low * live-build/auto/build: Exclude all *.efi* files from kernel version diff --git a/live-build/auto/build b/live-build/auto/build index 0abca601..1ee09c59 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -365,6 +365,11 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then md5sum $PREFIX.rootfs.tar.gz >chroot/installer.md5 wc -c $PREFIX.rootfs.tar.gz >chroot/installer.size + INFO_DESC="$(lsb_release -d -s)" + INFO_STAMP=$(date +20%y%m%d-%H:%M) + + echo "$INFO_DESC - $ARCH ($INFO_STAMP)" >chroot/media-info + # make sure update-initramfs feels cosy and warm in the environment lb chroot_proc install "$@" lb chroot_sysfs install "$@" @@ -374,13 +379,9 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then Chroot chroot "env FLASH_KERNEL_SKIP=1 update-initramfs -k all -t -u -v" # create boot.img - Chroot chroot "abootimg --create /boot/installer-${KVERS}.img -f /boot/bootimg.cfg -r /boot/initrd.img-${KVERS} -k /boot/vmlinuz-${KVERS}" + Chroot chroot "abootimg --create /boot/installer-${KVERS}.img -f /boot/bootimg.cfg-$SUBARCH -r /boot/initrd.img-${KVERS} -k /boot/vmlinuz-${KVERS}" if [ "$SUBARCH" = "nexus7" ]; then - # adjust the bootimg cmdline parameters - rm -rf /boot/installer-${KVERS}.img - Chroot chroot "abootimg --create /boot/installer-${KVERS}.img -f /boot/bootimg.cfg-nexus7 -r /boot/initrd.img-${KVERS} -k /boot/vmlinuz-${KVERS}" - # roll the android rootfs images mkdir -p userdata mv $PREFIX.rootfs.tar.gz userdata/rootfs.tar.gz