make sure the md5sum of the rootfs tarball ends up in the initrd for ac100 installs, post process the ac100 kernel and initrd through abootimg to get a proper android bootimage

ubuntu/precise
Oliver Grawert 14 years ago
parent 5b4115149f
commit 78a4e17ad8

9
debian/changelog vendored

@ -1,3 +1,12 @@
livecd-rootfs (2.25) UNRELEASED; urgency=low
* include the md5 sum of the rootfs tarball in the initrd, so the installer
can check against it for ac100 installs
* post process the kernel and initrd for ac100 though abootimg to get a
proper android boot image
-- Oliver Grawert <ogra@ubuntu.com> Wed, 17 Aug 2011 17:45:08 +0200
livecd-rootfs (2.24) oneiric; urgency=low
* add missing ;; to the mx5 case statement

@ -164,6 +164,29 @@ if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then
ln -sf "$PREFIX.initrd-$LB_LINUX_FLAVOURS" "$PREFIX.initrd"
fi
if [ "$SUBARCH" = "ac100" ]; then
# create the md5sum file for which we are actually doing all this
md5sum $PREFIX.rootfs.tar.gz >chroot/installer.md5
# make sure update-initramfs feels cosy and warm in the environment
lb chroot_proc install "$@"
lb chroot_sysfs install "$@"
lb chroot_devpts install "$@"
# re-create initrd to contain the installer.md5 file
Chroot chroot "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/vmlinu?-${KVERS}"
# clean up
lb chroot_devpts remove "$@"
lb chroot_sysfs remove "$@"
lb chroot_proc remove "$@"
cp "chroot/boot/installer-${KVERS}.img" "$PREFIX.installer-$FLAVOUR.img"
fi
# LTSP chroot building (only in 32bit and for Edubuntu (DVD))
case $PROJECT in
edubuntu-dvd)

Loading…
Cancel
Save