|
|
@ -238,12 +238,14 @@ deb file:/var/lib/preinstalled-pool/ $LB_DISTRIBUTION $LB_PARENT_ARCHIVE_AREAS
|
|
|
|
> chroot/etc/apt/sources.list
|
|
|
|
> chroot/etc/apt/sources.list
|
|
|
|
rm chroot/etc/apt/sources.list.preinstall chroot/etc/apt/sources.list.orig
|
|
|
|
rm chroot/etc/apt/sources.list.preinstall chroot/etc/apt/sources.list.orig
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-pd" ]; then
|
|
|
|
|
|
|
|
if [ "$ARCH" = "armhf" ]; then
|
|
|
|
INFO_DESC="$(lsb_release -d -s)"
|
|
|
|
INFO_DESC="$(lsb_release -d -s)"
|
|
|
|
echo "$INFO_DESC - $ARCH ($BUILDSTAMP)" >chroot/etc/media-info
|
|
|
|
echo "$INFO_DESC - $ARCH ($BUILDSTAMP)" >chroot/etc/media-info
|
|
|
|
mkdir -p chroot/var/log/installer
|
|
|
|
mkdir -p chroot/var/log/installer
|
|
|
|
Chroot chroot "ln -s /etc/media-info /var/log/installer/media-info"
|
|
|
|
Chroot chroot "ln -s /etc/media-info /var/log/installer/media-info"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
if [ "$PROJECT" = "ubuntu-cpc" ]; then
|
|
|
|
if [ "$PROJECT" = "ubuntu-cpc" ]; then
|
|
|
|
cat > chroot/etc/apt/sources.list << EOF
|
|
|
|
cat > chroot/etc/apt/sources.list << EOF
|
|
|
|
deb ${LB_PARENT_MIRROR_BINARY} ${LB_DISTRIBUTION} main restricted universe multiverse
|
|
|
|
deb ${LB_PARENT_MIRROR_BINARY} ${LB_DISTRIBUTION} main restricted universe multiverse
|
|
|
@ -313,7 +315,7 @@ elif [ -e binary-tar.tar.gz ]; then
|
|
|
|
cp -a binary-tar.tar.gz "$PREFIX.rootfs.tar.gz"
|
|
|
|
cp -a binary-tar.tar.gz "$PREFIX.rootfs.tar.gz"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ]; then
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-pd" ]; then
|
|
|
|
(cd "binary/$INITFS/custom.dir/" && tar -c *) | \
|
|
|
|
(cd "binary/$INITFS/custom.dir/" && tar -c *) | \
|
|
|
|
gzip -9 --rsyncable > "$PREFIX.custom.tar.gz"
|
|
|
|
gzip -9 --rsyncable > "$PREFIX.custom.tar.gz"
|
|
|
|
chmod 644 "$PREFIX.custom.tar.gz"
|
|
|
|
chmod 644 "$PREFIX.custom.tar.gz"
|
|
|
@ -436,7 +438,7 @@ if [ "$SUBARCH" = "ac100" ] || [ "$SUBARCH" = "nexus7" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ]; then
|
|
|
|
if [ "$PROJECT" = "ubuntu-touch" ] || [ "$PROJECT" = "ubuntu-pd" ]; then
|
|
|
|
sourceslist="chroot/etc/apt/sources.list"
|
|
|
|
sourceslist="chroot/etc/apt/sources.list"
|
|
|
|
|
|
|
|
|
|
|
|
lb chroot_proc install "$@"
|
|
|
|
lb chroot_proc install "$@"
|
|
|
|