3
0
mirror of https://git.launchpad.net/livecd-rootfs synced 2025-04-11 03:01:14 +00:00

Import patches-unapplied version 1.116 to ubuntu/maverick

Imported using git-ubuntu import.

Changelog parent: f86a4e26d44c462bc2094e83e5c6022749dc0b55

New changelog entries:
  [Michael Casadevall]
  * added new -f switch for changing image build type
  * added support for building ext2 and ext3 images in addition to squashfs
  * fixed spacing in the livefs build code
  * extended BuildLiveCD to handle the -f switch
  * reworked BuildLiveCD command line parsing to be more sane
This commit is contained in:
Oliver Grawert 2010-06-03 18:40:10 +02:00 committed by usd-importer
parent f86a4e26d4
commit 47f73c769a
65 changed files with 197 additions and 46 deletions
.bzr
READMEbranch-format
branch
checkout
repository
format
indices
pack-names
packs
.bzrignoreBuildLiveCD
debian
livecd.sh

3
.bzr/README Normal file

@ -0,0 +1,3 @@
This is a Bazaar control directory.
Do not change any files in this directory.
See http://bazaar-vcs.org/ for more information about Bazaar.

1
.bzr/branch-format Normal file

@ -0,0 +1 @@
Bazaar-NG meta directory, format 1

3
.bzr/branch/branch.conf Normal file

@ -0,0 +1,3 @@
parent_location = bzr+ssh://bazaar.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk/
push_location = bzr+ssh://bazaar.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk/
submit_branch = bzr+ssh://bazaar.launchpad.net/~mcasadevall/livecd-rootfs/ext-image-generation/

1
.bzr/branch/format Normal file

@ -0,0 +1 @@
Bazaar Branch Format 7 (needs bzr 1.6)

@ -0,0 +1 @@
330 ogra@ubuntu.com-20100603164932-3l3vnbiyce4gwb3l

1
.bzr/branch/tags Normal file

@ -0,0 +1 @@
d5:0.10045:lool@dooz.org-20091022120946-ude4k00wrup5zi1u5:0.10158:evan.dandrea@canonical.com-20091118182236-wjse47vyhq4331c34:0.6854:cjwatson@canonical.com-20080922105353-5g6nbd3z6auod9o84:0.6947:ogra@ubuntu.com-20080923105752-3is4oq7h0rvr7m1t4:0.7050:stevenk@ubuntu.com-20080926061032-4cmvys3uwn0urof64:0.7147:ogra@ubuntu.com-20080929212513-932wmh9jhu2254c84:0.7254:cjwatson@canonical.com-20081009012107-bcithv5mtfr13wdr4:0.7350:superm1@ubuntu.com-20081105013351-lgows8lwl8gynab14:0.7450:superm1@ubuntu.com-20081108155125-k9hgpa9dpccasza14:0.7550:stevenk@ubuntu.com-20090110000926-kti0aa3w3gm87tl64:0.7654:cjwatson@canonical.com-20090120234103-0oedx9z8fwfgebmg4:0.7754:cjwatson@canonical.com-20090129172302-12n6za4eg8ti5iqs4:0.7850:stevenk@ubuntu.com-20090323105302-bzrig75pk422ae8o4:0.7954:cjwatson@canonical.com-20090403000814-c0f4i899uyvq3le14:0.8050:stevenk@ubuntu.com-20090416104708-ytmlukba1r2qbok24:0.8154:cjwatson@canonical.com-20090508233530-xqdymqe6ii8eanbt4:0.8254:cjwatson@canonical.com-20090529072059-0303r4t3a2terv5u4:0.8354:cjwatson@canonical.com-20090529093922-h2qylvtfqgwqocs24:0.8460:steve.langasek@canonical.com-20090610202236-hzpkmw79nuly34iu4:0.8554:cjwatson@canonical.com-20090623163248-2e75g8ph1wr63bck4:0.8650:stevenk@ubuntu.com-20090630021433-f32fyu1qvauh1y5y4:0.8754:cjwatson@canonical.com-20090707120821-n7o4gmu5cgvs76314:0.8850:superm1@ubuntu.com-20090723080906-su6zimlrtqy6bmdj4:0.8950:stevenk@ubuntu.com-20090805132344-m6jy87gv6cmus3384:0.9047:ogra@ubuntu.com-20090811090144-eek0pgpf01i0zjim4:0.9150:superm1@ubuntu.com-20090814032033-i87zsm015fivhf494:0.9247:ogra@ubuntu.com-20090821173859-y8ixof4s2zb3vs394:0.9347:ogra@ubuntu.com-20090825163952-pxo05zcb6icy931e4:0.9445:lool@dooz.org-20090827103704-ces9mmhqskcdzxgm4:0.9550:stevenk@ubuntu.com-20090901073549-hyto6dxcpijmyb1u4:0.9654:cjwatson@canonical.com-20090915121422-j8ycjw2o2xsk2fim4:0.9745:lool@dooz.org-20090915225223-bkp0tzqk3dllogno4:0.9840:lool@bee-20090923074648-95yic2eel4ietxl34:0.9945:lool@dooz.org-20091004115344-a657lipup0e45we65:1.10258:evan.dandrea@canonical.com-20091119211317-msuqwz83h8lrtnf45:1.10347:ogra@ubuntu.com-20091207104326-192mmbzylr7gz8bk5:1.10450:stevenk@ubuntu.com-20091218032148-0127dc53ulzxt15h5:1.10560:steve.langasek@canonical.com-20100127011800-utoua1rehbsdyiqi5:1.10654:jriddell@canonical.com-20100308114808-2z6cywa7itr3u46m5:1.10949:lamont@debian.org-20100324133047-5k5cb0qkr4w4r41m5:1.11050:stevenk@ubuntu.com-20100324135015-zok8spw9m0ykcvk95:1.11149:lamont@debian.org-20100327011013-1azh4ef9byudkdml5:1.11447:ogra@ubuntu.com-20100420112048-i4da4bomagsbw0jh5:1.11545:lamont@rover3-20100505204008-7uox9fm2e1frkg7r5:1.11647:ogra@ubuntu.com-20100603164611-o4x2l2q8k15saiz0e

1
.bzr/checkout/conflicts Normal file

@ -0,0 +1 @@
BZR conflict list format 1

BIN
.bzr/checkout/dirstate Normal file

Binary file not shown.

1
.bzr/checkout/format Normal file

@ -0,0 +1 @@
Bazaar Working Tree Format 6 (bzr 1.14)

@ -0,0 +1,9 @@
BZR merge-modified list format 1
file_id: x_LaMont_Jones_<lamont.jones@canonical.com>_Thu_Jan__6_23:41:24_2005_11810.1
hash: 6750fdf6aa74c42b711c688757b4ce53c6b43f3b
file_id: buildlivecd-20070710110713-33hamwwudgc153n3-1
hash: ca26a1be824ff51a7faf11512c07a44e1aebac92
file_id: x_LaMont_Jones_<lamont.jones@canonical.com>_Thu_Jan__6_23:41:24_2005_11810.5
hash: 8fa5582a6f993a5c1fcd10ece80fd0f592e2eddf

0
.bzr/checkout/views Normal file

1
.bzr/repository/format Normal file

@ -0,0 +1 @@
Bazaar repository format 2a (needs bzr 1.16 or later)

@ -0,0 +1,6 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=1
row_lengths=1
ÁÁ € PÎLÁ´VMæm<x0ÑÛûÞûÝ~\ŽÈÏ Ú§H„2-Ü ¶VÀf¯aÖd(Íž’²bâR<52>Î

Binary file not shown.

Binary file not shown.

@ -0,0 +1,5 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=0
row_lengths=

@ -0,0 +1,7 @@
B+Tree Graph Index 2
node_ref_lists=1
key_elements=2
len=2
row_lengths=1
xœÅ<EFBFBD>ËjÃ0D½ÎWølîÕòCZ¼í®ûäÊÊÃbµîß×i6]uèf`gþºØ§Éêq³Ð~<7E>a¦} öJ»IûµÕ§[ëb8zª‡èŸéí<C3A9>QCŒon™  ±E¨±¸Ÿû?lâ\G<> @[©—nôÌâ˜ÎN¥â¡èèî³ÉaηÇ.ÖÄßVGñ®…‰^»«ù„Ó¡À7%ª†óJΤ<12>T!ÿO…üCv²«?O
ŒwÎ`bæ·Š¥l8ÂæIª¾

@ -0,0 +1,6 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=1
row_lengths=1
ÁÁ € PÎLÁôW(˜8L¡%<˜èÅí}ïýn?.ןSi_¬ÎÊÆUÐ<55><C390>ª4ëV¦.†ÎQ{”K“D`¤œ6jˆ?MaÖ

@ -0,0 +1,7 @@
B+Tree Graph Index 2
node_ref_lists=1
key_elements=1
len=1
row_lengths=1
xœ}ÊK@0Pc«è*ï¾R $¶RÒŠ(õkRVoÎøÜÏn;o<>ËÃtš>q»c1†U2<55>H“.5 C™ØóÑ,¨.3¿”ýü
­ôaz“{ŽžœÚl4h«Z<C2AB>`­òK_$

Binary file not shown.

@ -0,0 +1,5 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=0
row_lengths=

Binary file not shown.

@ -0,0 +1,6 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=1
row_lengths=1
xœ Ç1@j^ÁØ;r &>†p mü½N7Ï{Íýœ}ÅûèØšW1CUïdÉ&:LþΡՄÄWÈÊ– b)§"~º6

Binary file not shown.

Binary file not shown.

@ -0,0 +1,5 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=0
row_lengths=

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,6 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=1
row_lengths=1
Á± €0 @êLü&o$†1$4lÏÝûÝ}»zŒôœ<C3B4>µ[ЬЈC<1A>¦â%ê€K«¾4<C2BE>#¦ b´ <0C>5K. ¦Ã

Binary file not shown.

@ -0,0 +1,6 @@
B+Tree Graph Index 2
node_ref_lists=1
key_elements=1
len=1
row_lengths=1
xœ}ÊMƒ Pמ ÐÌ7ƒÄ.Lz˜¢X…úszoз~ù\Bƒ{×iXÝ«ø2çòèÓ¤™@dI`ÍSXK”ßìdzfؽÄêÏ·€NæàÈßöƒfsãE˜Q(Rm}XÆ#´

@ -0,0 +1,5 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=0
row_lengths=

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,5 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=0
row_lengths=

Binary file not shown.

@ -0,0 +1,5 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=0
row_lengths=

Binary file not shown.

Binary file not shown.

@ -0,0 +1,5 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=0
row_lengths=

@ -0,0 +1,5 @@
B+Tree Graph Index 2
node_ref_lists=1
key_elements=2
len=0
row_lengths=

@ -0,0 +1,6 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=1
row_lengths=1
Á± €0 @êLü&±-$†ùXAHа=wïwÏýš<Ês&Sha³IÓ˜p%Tbúp`X´Õ¸,ô^¡Ð*µÁQ~JöU

Binary file not shown.

Binary file not shown.

@ -0,0 +1,5 @@
B+Tree Graph Index 2
node_ref_lists=0
key_elements=1
len=0
row_lengths=

Binary file not shown.

BIN
.bzr/repository/pack-names Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

4
.bzrignore Normal file

@ -0,0 +1,4 @@
debian/*.debhelper*
debian/*.substvars
debian/files
debian/livecd-rootfs

@ -27,27 +27,19 @@ fi
ARCH=$(dpkg --print-architecture)
SUBARCH=""
SUBARCHARG=""
DEFAULTSUITE="karmic"
NEWSUITE=""
NEWSUITE="maverick"
SUITES=""
PROPOSED=""
if [ "$1" = '-s' ]; then
shift
SUBARCH="$1"
SUBARCHARG="-s$SUBARCH"
shift
fi
if [ "$1" = '-p' ]; then
PROPOSED='-p'
shift
fi
if [ "$1" = '-d' ]; then
shift
NEWSUITE="$1"
shift
else
NEWSUITE="$DEFAULTSUITE"
fi
IMAGEFORMAT="squashfs"
while getopts :s:d:f:p name; do case $name in
s) SUBARCH="$OPTARG";;
d) NEWSUITE="$OPTARG";;
f) IMAGEFORMAT="$OPTARG";;
p) PROPOSED="-p";;
esac; done;
shift $((OPTIND-1))
for s in $NEWSUITE; do
if [ -d build-${s}-live/chroot-${s} ]; then SUITES="$SUITES $s"; fi
done
@ -128,7 +120,7 @@ for STE in $SUITES; do
rm -f ${PUBDIR}latest
ln -sf ${PUBDIR}${NOW} ${PUBDIR}latest
mkdir -p ${PUBDIR}${NOW}
if $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && /usr/sbin/livecd.sh ${SUBARCHARG} ${PROPOSED} -d${STE} ${ARCHARG} $arg" > ${LOG} 2>&1; then
if $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && /usr/sbin/livecd.sh ${SUBARCHARG} ${PROPOSED} -d${STE} -f${IMAGEFORMAT} ${ARCHARG} ${IMAGEARG} $arg" > ${LOG} 2>&1; then
rm -f ${PUBDIR}current
ln -sf ${NOW} ${PUBDIR}current

11
debian/changelog vendored

@ -1,3 +1,14 @@
livecd-rootfs (1.116) maverick; urgency=low
[Michael Casadevall]
* added new -f switch for changing image build type
* added support for building ext2 and ext3 images in addition to squashfs
* fixed spacing in the livefs build code
* extended BuildLiveCD to handle the -f switch
* reworked BuildLiveCD command line parsing to be more sane
-- Oliver Grawert <ogra@ubuntu.com> Tue, 03 Jun 2010 18:40:10 +0200
livecd-rootfs (1.115) maverick; urgency=low
* use a tmpfs for the livefs root directory, to get some speed

@ -21,7 +21,7 @@ set -eu
# Boston, MA 02110-1301 USA. #
##########################################################################
# Depends: debootstrap, rsync, python-minimal|python, procps, squashfs-tools, ltsp-server [i386]
# Depends: debootstrap, rsync, python-minimal|python, procps, squashfs-tools, ltsp-server [i386], genext2fs
cleanup() {
for mnt in ${ROOT}dev/pts ${ROOT}dev/shm ${ROOT}.dev ${ROOT}dev \
@ -56,6 +56,37 @@ subst_package() {
}
livefs_squash()
{
squashsort="http://people.ubuntu.com/~tfheen/livesort/${FSS}.list.${TARGETARCH}"
#if wget -O livecd.${FSS}.sort ${squashsort} > /dev/null 2>&1; then
if false; then
echo "Using the squashfs sort list from ${squashsort}."
else
echo "Unable to fetch squashfs sort list; using a blank list."
: > livecd.${FSS}.sort
fi
# make sure there is no old squashfs idling around
rm -f livecd.${FSS}.squashfs
mksquashfs ${ROOT} livecd.${FSS}.squashfs -sort livecd.${FSS}.sort
chmod 644 livecd.${FSS}.squashfs
}
livefs_ext2()
{
# Add 10MiB extra free space for first boot + ext3 journal
size=$(($(du -ks ${ROOT} | cut -f1) + (10240)))
echo "Building ext2 filesystem."
# remove any stale filesystem images
rm -f livecd.${FSS}.ext?
genext2fs -b $size -d ${ROOT} livecd.${FSS}.ext2
chmod 644 livecd.${FSS}.ext2
}
if [ $(id -u) != 0 ];then
echo "must be run as root"
exit 2
@ -118,11 +149,12 @@ EXCLUDE=""
LIST=""
SUBARCH=""
PROPOSED=""
IMAGEFORMAT="squashfs"
# must be in the "team / PPA name" form; e.g. "moblin/ppa"; the default PPA
# name is "ppa", don't omit it
PPA=""
while getopts :d:e:i:I:m:S:s:a:p name; do case $name in
while getopts :d:e:i:I:m:S:s:a:f:p name; do case $name in
d) STE=$OPTARG;;
e) EXCLUDE="$EXCLUDE $OPTARG";;
i) LIST="$LIST $OPTARG";;
@ -131,6 +163,7 @@ while getopts :d:e:i:I:m:S:s:a:p name; do case $name in
S) USZ="$OPTARG";;
s) SUBARCH="$OPTARG";;
a) ARCH="$OPTARG";;
f) IMAGEFORMAT="$OPTARG";;
p) PROPOSED="yes";;
\?) echo bad usage >&2; exit 2;;
\:) echo missing argument >&2; exit 2;;
@ -624,35 +657,29 @@ Pin-Priority: 550
perl -i -nle 'print unless /^Package: language-(pack|support)/ .. /^$/;' \
${ROOT}/var/lib/apt/extended_states
# And run the cleanup function dead last, to umount /proc after nothing
# else needs to be run in the chroot (umounting it earlier breaks rm):
cleanup
# And run the cleanup function dead last, to umount /proc after nothing
# else needs to be run in the chroot (umounting it earlier breaks rm):
cleanup
# Squashfs does not report unpacked disk space usage, which is explained at
# <http://lkml.org/lkml/2006/6/16/163>. However, we would like to cache this
# number for partman's sufficient free space check and ubiquity's
# installation progress calculation.
printf $(du -sx --block-size=1 ${ROOT} | cut -f1) > livecd.${FSS}.size || true
# Squashfs does not report unpacked disk space usage, which is explained at
# <http://lkml.org/lkml/2006/6/16/163>. However, we would like to cache this
# number for partman's sufficient free space check and ubiquity's
# installation progress calculation.
printf $(du -sx --block-size=1 ${ROOT} | cut -f1) > livecd.${FSS}.size || true
livefs_squash()
{
squashsort="http://people.ubuntu.com/~tfheen/livesort/${FSS}.list.${TARGETARCH}"
#if wget -O livecd.${FSS}.sort ${squashsort} > /dev/null 2>&1; then
if false; then
echo "Using the squashfs sort list from ${squashsort}."
# Build our images
if [ "$IMAGEFORMAT" = "ext2" ] || [ "$IMAGEFORMAT" = "ext3" ]; then
livefs_ext2
else
echo "Unable to fetch squashfs sort list; using a blank list."
: > livecd.${FSS}.sort
livefs_squash
fi
# make sure there is no old squashfs idling around
rm -f livecd.${FSS}.squashfs
mksquashfs ${ROOT} livecd.${FSS}.squashfs -sort livecd.${FSS}.sort
chmod 644 livecd.${FSS}.squashfs
}
livefs_squash
# Upgrade ext2->ext3 if that's what is requested
if [ "$IMAGEFORMAT" = "ext3" ]; then
tune2fs -j livecd.${FSS}.ext2
mv livecd.${FSS}.ext2 livecd.${FSS}.ext3
fi
# LTSP chroot building (only in 32bit and for Edubuntu (DVD))
case $FS in