handle sources.list in ubuntu-touch initrd creation

ubuntu/trusty
Oliver Grawert 12 years ago
parent d7ec3fcc95
commit 3ff5a4a4db

1
debian/changelog vendored

@ -2,6 +2,7 @@ livecd-rootfs (2.137) UNRELEASED; urgency=low
* clear up /var/lib/initramfs-tools/ in the chroot after building initrds * clear up /var/lib/initramfs-tools/ in the chroot after building initrds
* remove ubuntu-touch/hooks/49-setup-demo-assets.chroot * remove ubuntu-touch/hooks/49-setup-demo-assets.chroot
* handle sources.list in ubuntu-touch initrd creation
-- Oliver Grawert <ogra@ubuntu.com> Tue, 28 May 2013 11:13:57 +0200 -- Oliver Grawert <ogra@ubuntu.com> Tue, 28 May 2013 11:13:57 +0200

@ -404,12 +404,19 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then
fi fi
if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
for subarch in maguro manta grouper mako; do touchsubarches="maguro manta grouper mako"
lb chroot_proc install "$@" sourceslist="chroot/etc/apt/sources.list"
lb chroot_sysfs install "$@"
lb chroot_devpts install "$@"
lb chroot_proc install "$@"
lb chroot_sysfs install "$@"
lb chroot_devpts install "$@"
mv "${sourceslist}" "${sourceslist}.orig"
echo "deb http://ftpmaster.internal/ubuntu/ $codename main universe" >$sourceslist
Chroot chroot "apt-get -y update"
for subarch in $touchsubarches; do
kpkg="$(Chroot chroot apt-cache depends linux-image-$subarch|grep Depends|sed -e 's/ Depends: //')" kpkg="$(Chroot chroot apt-cache depends linux-image-$subarch|grep Depends|sed -e 's/ Depends: //')"
kver=${kpkg#linux-image-} kver=${kpkg#linux-image-}
Chroot chroot "apt-get -y install $kpkg" Chroot chroot "apt-get -y install $kpkg"
@ -420,15 +427,22 @@ if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
Chroot chroot "apt-get -y purge $kpkg" Chroot chroot "apt-get -y purge $kpkg"
lb chroot_devpts remove "$@"
lb chroot_sysfs remove "$@"
lb chroot_proc remove "$@"
cp "chroot/boot/bootimg-${subarch}.img" "$PREFIX-${subarch}-boot.img" cp "chroot/boot/bootimg-${subarch}.img" "$PREFIX-${subarch}-boot.img"
rm "chroot/boot/bootimg-${subarch}.img" "/chroot/boot/initrd.img-"* "/chroot/boot/vmlinuz-"* rm "chroot/boot/bootimg-${subarch}.img" "/chroot/boot/initrd.img-"* "/chroot/boot/vmlinuz-"*
done done
lb chroot_devpts remove "$@"
lb chroot_sysfs remove "$@"
lb chroot_proc remove "$@"
rm -rf chroot/var/lib/initramfs-tools/* rm -rf chroot/var/lib/initramfs-tools/*
Chroot chroot "apt-get -y purge crda wireless-regdb" Chroot chroot "apt-get -y purge crda wireless-regdb"
Chroot chroot "apt-get -y clean"
mv $sourceslist.orig $sourceslist
for file in $(find chroot/var/lib/apt/lists/ -name ftpmaster.internal*); do
rm $file
done
fi fi
# LTSP chroot building (only in 32bit and for Edubuntu (DVD)) # LTSP chroot building (only in 32bit and for Edubuntu (DVD))

Loading…
Cancel
Save