Import patches-unapplied version 2.75 to ubuntu/quantal

Imported using git-ubuntu import.

Changelog parent: d0d1c9c8ac

New changelog entries:
  * Adjust for live-build interface changes up to 3.0~a57-1ubuntu1.
  * Break ubuntu-defaults-builder (<< 0.32) to account for these interface
    changes.
impish
Colin Watson 13 years ago committed by usd-importer
parent d0d1c9c8ac
commit b141c7c4b0

8
debian/changelog vendored

@ -1,3 +1,11 @@
livecd-rootfs (2.75) quantal; urgency=low
* Adjust for live-build interface changes up to 3.0~a57-1ubuntu1.
* Break ubuntu-defaults-builder (<< 0.32) to account for these interface
changes.
-- Colin Watson <cjwatson@ubuntu.com> Wed, 22 Aug 2012 13:29:29 +0100
livecd-rootfs (2.74) quantal; urgency=low
* Change mksquashfs compression flags for LTSP images, turning

3
debian/control vendored

@ -8,8 +8,9 @@ Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk
Package: livecd-rootfs
Architecture: all
Depends: ${misc:Depends}, debootstrap, rsync, python-minimal | python, procps, squashfs-tools (>= 1:3.3-1), grep-dctrl, fdupes, lsb-release, lzma, e2fsprogs, germinate (>= 1.25.1), apt-utils, gnupg, live-build (>= 3.0~a22-1ubuntu1)
Depends: ${misc:Depends}, debootstrap, rsync, python-minimal | python, procps, squashfs-tools (>= 1:3.3-1), grep-dctrl, fdupes, lsb-release, lzma, e2fsprogs, germinate (>= 1.25.1), apt-utils, gnupg, live-build (>= 3.0~a55-1)
Suggests: partimage
Breaks: ubuntu-defaults-builder (<< 0.32)
Description: construction script for the livecd rootfs
livecd-rootfs provides the script used to create the root filesystem
on the livecd.

@ -1,16 +1,16 @@
#! /bin/bash
#! /bin/sh
set -e
set -o pipefail
export LC_ALL=C
. "${LB_BASE:-/usr/share/live/build}"/scripts/build.sh
( . "${LIVE_BUILD}/scripts/build.sh" > /dev/null 2>&1 || true ) || . /usr/lib/live/build.sh
Arguments "${@}"
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
Set_defaults
rm -f binary.success
(
if [ -d config/gnupg ]; then
cat << @@EOF > config/gnupg/NEWKEY
@ -41,12 +41,11 @@ exit 0
EOF
chmod +x chroot/usr/sbin/update-initramfs
cat > config/chroot_local-hooks/zz-undivert-update-initramfs.sh <<'EOF'
cat > config/hooks/999-undivert-update-initramfs.chroot <<'EOF'
#! /bin/sh
rm -f /usr/sbin/update-initramfs
dpkg-divert --quiet --remove --rename /usr/sbin/update-initramfs
EOF
chmod +x config/chroot_local-hooks/zz-undivert-update-initramfs.sh
lb chroot "$@"
@ -256,8 +255,18 @@ deb file:/var/lib/preinstalled-pool/ $LB_DISTRIBUTION $LB_PARENT_ARCHIVE_AREAS
fi
lb binary "$@"
touch binary.success
) 2>&1 | tee binary.log
# bash has trouble with the build.sh sourcing arrangement at the top of this
# file, so we use this cheap-and-cheerful approach rather than the more
# correct 'set -o pipefail'.
if [ -e binary.success ]; then
rm -f binary.success
else
exit 1
fi
# Link output files somewhere BuildLiveCD will be able to find them.
PREFIX="livecd.$PROJECT${SUBARCH:+-$SUBARCH}"

@ -31,7 +31,7 @@ if [ -z "$MIRROR" ]; then
esac
fi
mkdir -p config/task-lists config/package-lists
mkdir -p config/package-lists
add_task ()
{
@ -40,7 +40,7 @@ add_task ()
local task
for task; do
echo "$task" >> "config/task-lists/livecd-rootfs.chroot_$pass.list"
echo "!chroot chroot apt-cache dumpavail | grep-dctrl -nsPackage -wFTask $task" >> "config/package-lists/livecd-rootfs.list.chroot_$pass"
done
}
@ -51,7 +51,7 @@ add_package ()
local pkg
for pkg; do
echo "$pkg" >> "config/package-lists/livecd-rootfs.chroot_$pass.list"
echo "$pkg" >> "config/package-lists/livecd-rootfs.list.chroot_$pass"
done
}
@ -67,6 +67,19 @@ PREINSTALLED=false
PREINSTALL_POOL=
PREINSTALL_POOL_SEEDS=
CHROOT_HOOKS=
BINARY_HOOKS=
add_chroot_hook ()
{
CHROOT_HOOKS="${CHROOT_HOOKS:+$CHROOT_HOOKS }$1"
}
add_binary_hook ()
{
BINARY_HOOKS="${BINARY_HOOKS:+$BINARY_HOOKS }$1"
}
case $IMAGEFORMAT in
ext2|ext3|ext4)
OPTS="${OPTS:+$OPTS }--initramfs none --chroot-filesystem $IMAGEFORMAT"
@ -135,12 +148,14 @@ case $PROJECT in
add_task install minimal standard kubuntu-desktop
LIVE_TASK='kubuntu-live'
COMPONENTS='main restricted universe'
add_chroot_hook remove-gnome-icon-cache
;;
kubuntu-active)
add_task install minimal standard kubuntu-active
LIVE_TASK='kubuntu-active-live'
COMPONENTS='main restricted universe'
add_chroot_hook remove-gnome-icon-cache
;;
edubuntu|edubuntu-dvd)
@ -260,6 +275,37 @@ case $ARCH in
;;
esac
add_chroot_hook update-apt-file-cache
add_chroot_hook update-apt-xapian-index
add_chroot_hook update-mlocate-database
add_chroot_hook remove-dbus-machine-id
add_chroot_hook remove-openssh-server-host-keys
add_chroot_hook remove-udev-persistent-rules
case $PROJECT in
ubuntu-server)
;;
*)
add_chroot_hook remove-python-py
;;
esac
case $PROJECT in
ubuntu-server)
cat > config/hooks/100-remove-fstab.chroot <<EOF
#! /bin/sh
rm -f /etc/fstab
EOF
;;
esac
case $SUBPROJECT in
wubi)
add_binary_hook build-wubildr
;;
esac
lb config noauto \
--mode ubuntu \
--distribution "$SUITE" \
@ -270,13 +316,16 @@ lb config noauto \
--build-with-chroot false \
${MIRROR:+--parent-mirror-bootstrap $MIRROR} \
${COMPONENTS:+--parent-archive-areas "$COMPONENTS"} \
--package-lists none \
--apt-source-archives false \
${KERNEL_FLAVOURS:+--linux-flavours "$KERNEL_FLAVOURS"} \
--initsystem none \
--bootloader "$BOOTLOADER" \
--initramfs-compression lzma \
$OPTS
echo "LB_CHROOT_HOOKS=\"$CHROOT_HOOKS\"" >> config/chroot
echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary
if $BINARY_REMOVE_LINUX; then
cat > config/binary_rootfs/excludes << EOF
boot/vmlinu?-*
@ -284,50 +333,27 @@ boot/initrd.img-*
EOF
fi
if [ "$PROJECT" != ubuntu-server ]; then
ln -s /usr/share/live/build/examples/hooks/all_chroot_pyc-purge.sh config/chroot_local-hooks/
fi
case $PROJECT in
kubuntu|kubuntu-active)
ln -s /usr/share/live/build/examples/hooks/kubuntu_chroot_icon-theme.sh config/chroot_local-hooks/
;;
ubuntu-server)
cat > config/chroot_local-hooks/ubuntu-server_chroot_remove-fstab.sh <<EOF
#! /bin/sh
rm -f /etc/fstab
EOF
;;
esac
case $SUBPROJECT in
wubi)
ln -s /usr/share/live/build/examples/hooks/ubuntu_binary_build-wubildr.sh config/binary_local-hooks/
;;
esac
if [ "$PROPOSED" ]; then
. config/bootstrap
cat > config/archives/proposed.chroot.list << EOF
cat > config/archives/proposed.list.chroot << EOF
deb $LB_PARENT_MIRROR_BINARY_VOLATILE $SUITE-proposed $LB_PARENT_ARCHIVE_AREAS
EOF
cp -a config/archives/proposed.chroot.list \
config/archives/proposed.binary.list
cp -a config/archives/proposed.list.chroot \
config/archives/proposed.list.binary
fi
case $PROJECT in
*-dvd)
. config/bootstrap
cat > config/archives/dvd.binary.list << EOF
cat > config/archives/dvd.list.binary << EOF
deb $LB_PARENT_MIRROR_BINARY $SUITE universe multiverse
deb $LB_PARENT_MIRROR_BINARY_SECURITY $SUITE-security universe multiverse
deb $LB_PARENT_MIRROR_BINARY_VOLATILE $SUITE-updates universe multiverse
EOF
if [ "$PROPOSED" ]; then
cat >> config/archives/dvd.binary.list << EOF
cat >> config/archives/dvd.list.binary << EOF
deb $LB_PARENT_MIRROR_BINARY_VOLATILE $SUITE-proposed universe multiverse
EOF
fi
@ -412,10 +438,11 @@ if [ "$PREINSTALLED" = "true" ]; then
wget $MIRROR/indices/override.$SUITE.extra.$component \
)
done
PREINSTALL_POOL_HOOK=config/chroot_local-hooks/preinstall-pool.sh
echo "#! /bin/sh" > $PREINSTALL_POOL_HOOK
echo "mkdir -p /var/lib/preinstalled-pool/pool/" >> $PREINSTALL_POOL_HOOK
echo "cd /var/lib/preinstalled-pool/pool/" >> $PREINSTALL_POOL_HOOK
echo "apt-get -y download $PREINSTALL_POOL" >> $PREINSTALL_POOL_HOOK
cat > config/hooks/100-preinstall-pool.chroot <<EOF
#! /bin/sh
mkdir -p /var/lib/preinstalled-pool/pool/
cd /var/lib/preinstalled-pool/pool/
apt-get -y download $PREINSTALL_POOL
EOF
fi
fi

Loading…
Cancel
Save