mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-26 02:21:40 +00:00
Import patches-unapplied version 2.76 to ubuntu/quantal
Imported using git-ubuntu import. Changelog parent: b141c7c4b01272f3f42483825f70e4ff4e5a09b1 New changelog entries: * live-build/auto/config: - Don't try to install an empty task name when building an image without a live task. - Fix installation of ubuntu-server fstab removal hook. - Pass --architectures to 'lb config', to make it easier to build images for a different architecture. - Attempt to restrict task installation to the native architecture.
This commit is contained in:
parent
b141c7c4b0
commit
b2bcbb5d7e
12
debian/changelog
vendored
12
debian/changelog
vendored
@ -1,3 +1,15 @@
|
|||||||
|
livecd-rootfs (2.76) quantal; urgency=low
|
||||||
|
|
||||||
|
* live-build/auto/config:
|
||||||
|
- Don't try to install an empty task name when building an image without
|
||||||
|
a live task.
|
||||||
|
- Fix installation of ubuntu-server fstab removal hook.
|
||||||
|
- Pass --architectures to 'lb config', to make it easier to build images
|
||||||
|
for a different architecture.
|
||||||
|
- Attempt to restrict task installation to the native architecture.
|
||||||
|
|
||||||
|
-- Colin Watson <cjwatson@ubuntu.com> Thu, 23 Aug 2012 11:09:10 +0100
|
||||||
|
|
||||||
livecd-rootfs (2.75) quantal; urgency=low
|
livecd-rootfs (2.75) quantal; urgency=low
|
||||||
|
|
||||||
* Adjust for live-build interface changes up to 3.0~a57-1ubuntu1.
|
* Adjust for live-build interface changes up to 3.0~a57-1ubuntu1.
|
||||||
|
@ -39,8 +39,26 @@ add_task ()
|
|||||||
shift
|
shift
|
||||||
local task
|
local task
|
||||||
|
|
||||||
|
# The removal of direct task installation support from live-build
|
||||||
|
# poses some problems. If the chroot has multiarch configured - for
|
||||||
|
# example, if we're building for amd64 - then dumpavail will show
|
||||||
|
# foreign-architecture packages which will have their own Task
|
||||||
|
# lines, but which we don't want to install. (Compare
|
||||||
|
# PackageContainerInterface::FromTask in apt, which restricts task
|
||||||
|
# expansion to the native architecture.) We therefore restrict our
|
||||||
|
# search to stanzas with Architecture: $ARCH or all.
|
||||||
|
#
|
||||||
|
# However, even this may not be accurate enough. At the moment I
|
||||||
|
# have no idea what happens if an Architecture: all package has
|
||||||
|
# different Task fields on different architectures. This is
|
||||||
|
# probably a lurking timebomb that we need to fix. In the meantime,
|
||||||
|
# the Architecture restriction at least saves us from abject
|
||||||
|
# failure.
|
||||||
|
|
||||||
for task; do
|
for task; do
|
||||||
echo "!chroot chroot apt-cache dumpavail | grep-dctrl -nsPackage -wFTask $task" >> "config/package-lists/livecd-rootfs.list.chroot_$pass"
|
# We need a ridiculous number of backslashes to protect
|
||||||
|
# parentheses from eval.
|
||||||
|
echo "!chroot chroot apt-cache dumpavail | grep-dctrl -nsPackage \\\\\\( -XFArchitecture $ARCH -o -XFArchitecture all \\\\\\) -a -wFTask $task" >> "config/package-lists/livecd-rootfs.list.chroot_$pass"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -229,7 +247,7 @@ case $PROJECT in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$PREINSTALLED" != "true" ]; then
|
if [ "$PREINSTALLED" != "true" ] && [ "$LIVE_TASK" ]; then
|
||||||
add_task live "$LIVE_TASK"
|
add_task live "$LIVE_TASK"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -291,15 +309,6 @@ case $PROJECT in
|
|||||||
;;
|
;;
|
||||||
esac
|
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
|
case $SUBPROJECT in
|
||||||
wubi)
|
wubi)
|
||||||
add_binary_hook build-wubildr
|
add_binary_hook build-wubildr
|
||||||
@ -309,6 +318,7 @@ esac
|
|||||||
lb config noauto \
|
lb config noauto \
|
||||||
--mode ubuntu \
|
--mode ubuntu \
|
||||||
--distribution "$SUITE" \
|
--distribution "$SUITE" \
|
||||||
|
--architectures "$ARCH" \
|
||||||
--bootstrap-keyring ubuntu-keyring \
|
--bootstrap-keyring ubuntu-keyring \
|
||||||
--binary-images "$BINARY_IMAGES" \
|
--binary-images "$BINARY_IMAGES" \
|
||||||
--memtest "$MEMTEST" \
|
--memtest "$MEMTEST" \
|
||||||
@ -326,6 +336,15 @@ lb config noauto \
|
|||||||
echo "LB_CHROOT_HOOKS=\"$CHROOT_HOOKS\"" >> config/chroot
|
echo "LB_CHROOT_HOOKS=\"$CHROOT_HOOKS\"" >> config/chroot
|
||||||
echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary
|
echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary
|
||||||
|
|
||||||
|
case $PROJECT in
|
||||||
|
ubuntu-server)
|
||||||
|
cat > config/hooks/100-remove-fstab.chroot <<EOF
|
||||||
|
#! /bin/sh
|
||||||
|
rm -f /etc/fstab
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
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?-*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user