mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-18 14:21:45 +00:00
Import patches-unapplied version 2.31 to ubuntu/oneiric
Imported using git-ubuntu import. Changelog parent: d82b716b810184a00066a22ebaeb09f2e7f53428 New changelog entries: * Link binary.iso or binary-hybrid.iso, if found, into the output directory for use by BuildLiveCD. * Tolerate ubuntu-defaults-image's kernel renaming. * Add a -u option to BuildLiveCD which calls ubuntu-defaults-image.
This commit is contained in:
parent
d82b716b81
commit
564757adc0
@ -33,8 +33,9 @@ SUITES=""
|
|||||||
PROPOSED=""
|
PROPOSED=""
|
||||||
IMAGEFORMAT=""
|
IMAGEFORMAT=""
|
||||||
LIVE_BUILD=false
|
LIVE_BUILD=false
|
||||||
|
UBUNTU_DEFAULTS_LOCALE=""
|
||||||
|
|
||||||
while getopts :s:r:d:f:pa:l name; do case $name in
|
while getopts :s:r:d:f:pa:lu: name; do case $name in
|
||||||
s) SUBARCH="$OPTARG";;
|
s) SUBARCH="$OPTARG";;
|
||||||
r) SUBPROJECT="$OPTARG";;
|
r) SUBPROJECT="$OPTARG";;
|
||||||
d) NEWSUITE="$OPTARG";;
|
d) NEWSUITE="$OPTARG";;
|
||||||
@ -42,6 +43,7 @@ while getopts :s:r:d:f:pa:l name; do case $name in
|
|||||||
p) PROPOSED="-p";;
|
p) PROPOSED="-p";;
|
||||||
a) APT_SOURCE="-A $OPTARG";;
|
a) APT_SOURCE="-A $OPTARG";;
|
||||||
l) LIVE_BUILD=:;;
|
l) LIVE_BUILD=:;;
|
||||||
|
u) UBUNTU_DEFAULTS_LOCALE="$OPTARG";;
|
||||||
esac; done;
|
esac; done;
|
||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
|
||||||
@ -112,7 +114,7 @@ for STE in $SUITES; do
|
|||||||
if [ -d ~/build-${STE}-live/chroot-${STE} ]; then
|
if [ -d ~/build-${STE}-live/chroot-${STE} ]; then
|
||||||
sudo chroot ~/build-${STE}-live/chroot-${STE} apt-get -qq update || true
|
sudo chroot ~/build-${STE}-live/chroot-${STE} apt-get -qq update || true
|
||||||
sudo chroot ~/build-${STE}-live/chroot-${STE} apt-get -y dist-upgrade || true
|
sudo chroot ~/build-${STE}-live/chroot-${STE} apt-get -y dist-upgrade || true
|
||||||
sudo chroot ~/build-${STE}-live/chroot-${STE} apt-get -y install livecd-rootfs || true
|
sudo chroot ~/build-${STE}-live/chroot-${STE} apt-get -y install livecd-rootfs ubuntu-defaults-builder || true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for STE in $SUITES; do
|
for STE in $SUITES; do
|
||||||
@ -145,6 +147,9 @@ for STE in $SUITES; do
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
COMMAND="PROJECT=${FS} SUBPROJECT=${SUBPROJECT} ARCH=${ARCH} SUBARCH=${SUBARCH} lb build"
|
COMMAND="PROJECT=${FS} SUBPROJECT=${SUBPROJECT} ARCH=${ARCH} SUBARCH=${SUBARCH} lb build"
|
||||||
|
elif [ "$UBUNTU_DEFAULTS_LOCALE" ]; then
|
||||||
|
# universe enabled until ubuntu-defaults-zh-cn is moved to main
|
||||||
|
COMMAND="ubuntu-defaults-image --locale ${UBUNTU_DEFAULTS_LOCALE} --arch ${ARCH} --release ${STE} --components main,restricted,universe"
|
||||||
else
|
else
|
||||||
COMMAND="/usr/sbin/livecd.sh ${SUBARCHARG} ${APT_SOURCE} ${PROPOSED} -d${STE} ${IMAGEFORMAT:+-f$IMAGEFORMAT} ${ARCHARG} ${IMAGEARG} ${FS}"
|
COMMAND="/usr/sbin/livecd.sh ${SUBARCHARG} ${APT_SOURCE} ${PROPOSED} -d${STE} ${IMAGEFORMAT:+-f$IMAGEFORMAT} ${ARCHARG} ${IMAGEARG} ${FS}"
|
||||||
fi
|
fi
|
||||||
|
9
debian/changelog
vendored
9
debian/changelog
vendored
@ -1,3 +1,12 @@
|
|||||||
|
livecd-rootfs (2.31) oneiric; urgency=low
|
||||||
|
|
||||||
|
* Link binary.iso or binary-hybrid.iso, if found, into the output
|
||||||
|
directory for use by BuildLiveCD.
|
||||||
|
* Tolerate ubuntu-defaults-image's kernel renaming.
|
||||||
|
* Add a -u option to BuildLiveCD which calls ubuntu-defaults-image.
|
||||||
|
|
||||||
|
-- Colin Watson <cjwatson@ubuntu.com> Tue, 23 Aug 2011 18:35:56 +0100
|
||||||
|
|
||||||
livecd-rootfs (2.30) oneiric; urgency=low
|
livecd-rootfs (2.30) oneiric; urgency=low
|
||||||
|
|
||||||
* provide .bootimg as a link to .bootimg-$FLAVOUR similar to the
|
* provide .bootimg as a link to .bootimg-$FLAVOUR similar to the
|
||||||
|
@ -116,6 +116,13 @@ for OUTPUT in ext2 ext3 ext4 manifest manifest-remove size squashfs; do
|
|||||||
chmod 644 "$PREFIX.$OUTPUT"
|
chmod 644 "$PREFIX.$OUTPUT"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for ISO in binary.iso binary-hybrid.iso; do
|
||||||
|
[ -e "$ISO" ] || continue
|
||||||
|
ln "$ISO" "$PREFIX.iso"
|
||||||
|
chmod 644 "$PREFIX.iso"
|
||||||
|
break
|
||||||
|
done
|
||||||
|
|
||||||
if [ -e "binary/$INITFS/filesystem.dir" ]; then
|
if [ -e "binary/$INITFS/filesystem.dir" ]; then
|
||||||
(cd "binary/$INITFS/filesystem.dir/" && tar -c *) | \
|
(cd "binary/$INITFS/filesystem.dir/" && tar -c *) | \
|
||||||
gzip -9 --rsyncable > "$PREFIX.rootfs.tar.gz"
|
gzip -9 --rsyncable > "$PREFIX.rootfs.tar.gz"
|
||||||
@ -141,6 +148,10 @@ for FLAVOUR in $LB_LINUX_FLAVOURS; do
|
|||||||
fi
|
fi
|
||||||
KVERS="$( (cd "binary/$INITFS"; ls vmlinu?-*) | sed -n "s/^vmlinu.-\\([^-]*-[^-]*-$FLAVOUR\\)$/\\1/p" )"
|
KVERS="$( (cd "binary/$INITFS"; ls vmlinu?-*) | sed -n "s/^vmlinu.-\\([^-]*-[^-]*-$FLAVOUR\\)$/\\1/p" )"
|
||||||
if [ -z "$KVERS" ]; then
|
if [ -z "$KVERS" ]; then
|
||||||
|
if [ -e "binary/$INITFS/vmlinuz" ]; then
|
||||||
|
# already renamed by ubuntu-defaults-image
|
||||||
|
break
|
||||||
|
fi
|
||||||
echo "No kernel output for $FLAVOUR!" >&2
|
echo "No kernel output for $FLAVOUR!" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -160,8 +171,16 @@ done
|
|||||||
NUMFLAVOURS="$(set -- $LB_LINUX_FLAVOURS; echo $#)"
|
NUMFLAVOURS="$(set -- $LB_LINUX_FLAVOURS; echo $#)"
|
||||||
if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then
|
if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then
|
||||||
# only one kernel flavour
|
# only one kernel flavour
|
||||||
ln -sf "$PREFIX.kernel-$LB_LINUX_FLAVOURS" "$PREFIX.kernel"
|
if [ -e "binary/$INITFS/vmlinuz" ]; then
|
||||||
ln -sf "$PREFIX.initrd-$LB_LINUX_FLAVOURS" "$PREFIX.initrd"
|
ln "binary/$INITFS/vmlinuz" "$PREFIX.kernel"
|
||||||
|
else
|
||||||
|
ln -sf "$PREFIX.kernel-$LB_LINUX_FLAVOURS" "$PREFIX.kernel"
|
||||||
|
fi
|
||||||
|
if [ -e "binary/$INITFS/initrd.lz" ]; then
|
||||||
|
ln "binary/$INITFS/initrd.lz" "$PREFIX.initrd"
|
||||||
|
else
|
||||||
|
ln -sf "$PREFIX.initrd-$LB_LINUX_FLAVOURS" "$PREFIX.initrd"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SUBARCH" = "ac100" ]; then
|
if [ "$SUBARCH" = "ac100" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user