mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-12 03:11:40 +00:00
Import patches-unapplied version 2.75 to ubuntu/quantal
Imported using git-ubuntu import. Changelog parent: d0d1c9c8ac250e92eca8d461a6db595b4ea4c9de 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.
This commit is contained in:
parent
d0d1c9c8ac
commit
b141c7c4b0
8
debian/changelog
vendored
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
|
livecd-rootfs (2.74) quantal; urgency=low
|
||||||
|
|
||||||
* Change mksquashfs compression flags for LTSP images, turning
|
* Change mksquashfs compression flags for LTSP images, turning
|
||||||
|
3
debian/control
vendored
3
debian/control
vendored
@ -8,8 +8,9 @@ Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk
|
|||||||
|
|
||||||
Package: livecd-rootfs
|
Package: livecd-rootfs
|
||||||
Architecture: all
|
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
|
Suggests: partimage
|
||||||
|
Breaks: ubuntu-defaults-builder (<< 0.32)
|
||||||
Description: construction script for the livecd rootfs
|
Description: construction script for the livecd rootfs
|
||||||
livecd-rootfs provides the script used to create the root filesystem
|
livecd-rootfs provides the script used to create the root filesystem
|
||||||
on the livecd.
|
on the livecd.
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
#! /bin/bash
|
#! /bin/sh
|
||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
export LC_ALL=C
|
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 "${@}"
|
Arguments "${@}"
|
||||||
|
|
||||||
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
|
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
|
||||||
Set_defaults
|
Set_defaults
|
||||||
|
|
||||||
|
rm -f binary.success
|
||||||
(
|
(
|
||||||
if [ -d config/gnupg ]; then
|
if [ -d config/gnupg ]; then
|
||||||
cat << @@EOF > config/gnupg/NEWKEY
|
cat << @@EOF > config/gnupg/NEWKEY
|
||||||
@ -41,12 +41,11 @@ exit 0
|
|||||||
EOF
|
EOF
|
||||||
chmod +x chroot/usr/sbin/update-initramfs
|
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
|
#! /bin/sh
|
||||||
rm -f /usr/sbin/update-initramfs
|
rm -f /usr/sbin/update-initramfs
|
||||||
dpkg-divert --quiet --remove --rename /usr/sbin/update-initramfs
|
dpkg-divert --quiet --remove --rename /usr/sbin/update-initramfs
|
||||||
EOF
|
EOF
|
||||||
chmod +x config/chroot_local-hooks/zz-undivert-update-initramfs.sh
|
|
||||||
|
|
||||||
lb chroot "$@"
|
lb chroot "$@"
|
||||||
|
|
||||||
@ -256,8 +255,18 @@ deb file:/var/lib/preinstalled-pool/ $LB_DISTRIBUTION $LB_PARENT_ARCHIVE_AREAS
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
lb binary "$@"
|
lb binary "$@"
|
||||||
|
touch binary.success
|
||||||
) 2>&1 | tee binary.log
|
) 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.
|
# Link output files somewhere BuildLiveCD will be able to find them.
|
||||||
PREFIX="livecd.$PROJECT${SUBARCH:+-$SUBARCH}"
|
PREFIX="livecd.$PROJECT${SUBARCH:+-$SUBARCH}"
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ if [ -z "$MIRROR" ]; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p config/task-lists config/package-lists
|
mkdir -p config/package-lists
|
||||||
|
|
||||||
add_task ()
|
add_task ()
|
||||||
{
|
{
|
||||||
@ -40,7 +40,7 @@ add_task ()
|
|||||||
local task
|
local task
|
||||||
|
|
||||||
for task; do
|
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
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ add_package ()
|
|||||||
local pkg
|
local pkg
|
||||||
|
|
||||||
for pkg; do
|
for pkg; do
|
||||||
echo "$pkg" >> "config/package-lists/livecd-rootfs.chroot_$pass.list"
|
echo "$pkg" >> "config/package-lists/livecd-rootfs.list.chroot_$pass"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,6 +67,19 @@ PREINSTALLED=false
|
|||||||
PREINSTALL_POOL=
|
PREINSTALL_POOL=
|
||||||
PREINSTALL_POOL_SEEDS=
|
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
|
case $IMAGEFORMAT in
|
||||||
ext2|ext3|ext4)
|
ext2|ext3|ext4)
|
||||||
OPTS="${OPTS:+$OPTS }--initramfs none --chroot-filesystem $IMAGEFORMAT"
|
OPTS="${OPTS:+$OPTS }--initramfs none --chroot-filesystem $IMAGEFORMAT"
|
||||||
@ -135,12 +148,14 @@ case $PROJECT in
|
|||||||
add_task install minimal standard kubuntu-desktop
|
add_task install minimal standard kubuntu-desktop
|
||||||
LIVE_TASK='kubuntu-live'
|
LIVE_TASK='kubuntu-live'
|
||||||
COMPONENTS='main restricted universe'
|
COMPONENTS='main restricted universe'
|
||||||
|
add_chroot_hook remove-gnome-icon-cache
|
||||||
;;
|
;;
|
||||||
|
|
||||||
kubuntu-active)
|
kubuntu-active)
|
||||||
add_task install minimal standard kubuntu-active
|
add_task install minimal standard kubuntu-active
|
||||||
LIVE_TASK='kubuntu-active-live'
|
LIVE_TASK='kubuntu-active-live'
|
||||||
COMPONENTS='main restricted universe'
|
COMPONENTS='main restricted universe'
|
||||||
|
add_chroot_hook remove-gnome-icon-cache
|
||||||
;;
|
;;
|
||||||
|
|
||||||
edubuntu|edubuntu-dvd)
|
edubuntu|edubuntu-dvd)
|
||||||
@ -260,6 +275,37 @@ case $ARCH in
|
|||||||
;;
|
;;
|
||||||
esac
|
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 \
|
lb config noauto \
|
||||||
--mode ubuntu \
|
--mode ubuntu \
|
||||||
--distribution "$SUITE" \
|
--distribution "$SUITE" \
|
||||||
@ -270,13 +316,16 @@ lb config noauto \
|
|||||||
--build-with-chroot false \
|
--build-with-chroot false \
|
||||||
${MIRROR:+--parent-mirror-bootstrap $MIRROR} \
|
${MIRROR:+--parent-mirror-bootstrap $MIRROR} \
|
||||||
${COMPONENTS:+--parent-archive-areas "$COMPONENTS"} \
|
${COMPONENTS:+--parent-archive-areas "$COMPONENTS"} \
|
||||||
--package-lists none \
|
--apt-source-archives false \
|
||||||
${KERNEL_FLAVOURS:+--linux-flavours "$KERNEL_FLAVOURS"} \
|
${KERNEL_FLAVOURS:+--linux-flavours "$KERNEL_FLAVOURS"} \
|
||||||
--initsystem none \
|
--initsystem none \
|
||||||
--bootloader "$BOOTLOADER" \
|
--bootloader "$BOOTLOADER" \
|
||||||
--initramfs-compression lzma \
|
--initramfs-compression lzma \
|
||||||
$OPTS
|
$OPTS
|
||||||
|
|
||||||
|
echo "LB_CHROOT_HOOKS=\"$CHROOT_HOOKS\"" >> config/chroot
|
||||||
|
echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary
|
||||||
|
|
||||||
if $BINARY_REMOVE_LINUX; then
|
if $BINARY_REMOVE_LINUX; then
|
||||||
cat > config/binary_rootfs/excludes << EOF
|
cat > config/binary_rootfs/excludes << EOF
|
||||||
boot/vmlinu?-*
|
boot/vmlinu?-*
|
||||||
@ -284,50 +333,27 @@ boot/initrd.img-*
|
|||||||
EOF
|
EOF
|
||||||
fi
|
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
|
if [ "$PROPOSED" ]; then
|
||||||
. config/bootstrap
|
. 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
|
deb $LB_PARENT_MIRROR_BINARY_VOLATILE $SUITE-proposed $LB_PARENT_ARCHIVE_AREAS
|
||||||
EOF
|
EOF
|
||||||
cp -a config/archives/proposed.chroot.list \
|
cp -a config/archives/proposed.list.chroot \
|
||||||
config/archives/proposed.binary.list
|
config/archives/proposed.list.binary
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $PROJECT in
|
case $PROJECT in
|
||||||
*-dvd)
|
*-dvd)
|
||||||
. config/bootstrap
|
. 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 $SUITE universe multiverse
|
||||||
deb $LB_PARENT_MIRROR_BINARY_SECURITY $SUITE-security universe multiverse
|
deb $LB_PARENT_MIRROR_BINARY_SECURITY $SUITE-security universe multiverse
|
||||||
deb $LB_PARENT_MIRROR_BINARY_VOLATILE $SUITE-updates universe multiverse
|
deb $LB_PARENT_MIRROR_BINARY_VOLATILE $SUITE-updates universe multiverse
|
||||||
EOF
|
EOF
|
||||||
if [ "$PROPOSED" ]; then
|
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
|
deb $LB_PARENT_MIRROR_BINARY_VOLATILE $SUITE-proposed universe multiverse
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
@ -412,10 +438,11 @@ if [ "$PREINSTALLED" = "true" ]; then
|
|||||||
wget $MIRROR/indices/override.$SUITE.extra.$component \
|
wget $MIRROR/indices/override.$SUITE.extra.$component \
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
PREINSTALL_POOL_HOOK=config/chroot_local-hooks/preinstall-pool.sh
|
cat > config/hooks/100-preinstall-pool.chroot <<EOF
|
||||||
echo "#! /bin/sh" > $PREINSTALL_POOL_HOOK
|
#! /bin/sh
|
||||||
echo "mkdir -p /var/lib/preinstalled-pool/pool/" >> $PREINSTALL_POOL_HOOK
|
mkdir -p /var/lib/preinstalled-pool/pool/
|
||||||
echo "cd /var/lib/preinstalled-pool/pool/" >> $PREINSTALL_POOL_HOOK
|
cd /var/lib/preinstalled-pool/pool/
|
||||||
echo "apt-get -y download $PREINSTALL_POOL" >> $PREINSTALL_POOL_HOOK
|
apt-get -y download $PREINSTALL_POOL
|
||||||
|
EOF
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user