make the bootimg.cfg file handling subarch based instead of having two code paths, create a media-info file with build timestamp for preinstalled ac100 and nexus7 images

ubuntu/trusty
Oliver Grawert 12 years ago
parent efe30575e7
commit 49e75ffbcd

9
debian/changelog vendored

@ -1,3 +1,12 @@
livecd-rootfs (2.104) UNRELEASED; 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

@ -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

Loading…
Cancel
Save