Import patches-unapplied version 0.57 to ubuntu/intrepid

Imported using git-ubuntu import.

Changelog parent: 7ae22491cb

New changelog entries:
  * Allow the user to specify the ARCH on the livecd.sh command line,
    overriding the use of the dpkg architecture for the livecd run.
  * Differentiate between ARCH (the local architecture) and TARGETARCH,
    so that builds of ubuntu-lpia continue to work on the i386 buildd.
  * Pass ARCH by default from BuildLiveCD to livecd.sh; this should be
    manually overridden on cross-arch buildds, instead of using dpkg.
  * Update default suite in BuildLiveCD to intrepid, gutsy's a bit old.
impish 0.57
Adam Conrad 17 years ago committed by usd-importer
parent 7ae22491cb
commit f23f76577d

@ -27,7 +27,7 @@ fi
ARCH=$(dpkg --print-installation-architecture) ARCH=$(dpkg --print-installation-architecture)
SUBARCH="" SUBARCH=""
SUBARCHARG="" SUBARCHARG=""
DEFAULTSUITE="gutsy" DEFAULTSUITE="intrepid"
NEWSUITE="" NEWSUITE=""
SUITES="" SUITES=""
PROPOSED="" PROPOSED=""
@ -111,7 +111,7 @@ for STE in $SUITES; do
rm -f ${PUBDIR}latest rm -f ${PUBDIR}latest
ln -sf ${PUBDIR}${NOW} ${PUBDIR}latest ln -sf ${PUBDIR}${NOW} ${PUBDIR}latest
mkdir -p ${PUBDIR}${NOW} mkdir -p ${PUBDIR}${NOW}
if $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && /usr/sbin/livecd.sh ${SUBARCHARG} ${PROPOSED} -d${STE} $arg" > ${LOG} 2>&1; then if $LINUX32 sudo chroot ${DIR%/./*} sh -c "cd /${DIR#*/./} && /usr/sbin/livecd.sh ${SUBARCHARG} ${PROPOSED} -d${STE} -a${ARCH} $arg" > ${LOG} 2>&1; then
rm -f ${PUBDIR}current rm -f ${PUBDIR}current
ln -sf ${NOW} ${PUBDIR}current ln -sf ${NOW} ${PUBDIR}current

12
debian/changelog vendored

@ -1,3 +1,15 @@
livecd-rootfs (0.57) intrepid; urgency=low
* Allow the user to specify the ARCH on the livecd.sh command line,
overriding the use of the dpkg architecture for the livecd run.
* Differentiate between ARCH (the local architecture) and TARGETARCH,
so that builds of ubuntu-lpia continue to work on the i386 buildd.
* Pass ARCH by default from BuildLiveCD to livecd.sh; this should be
manually overridden on cross-arch buildds, instead of using dpkg.
* Update default suite in BuildLiveCD to intrepid, gutsy's a bit old.
-- Adam Conrad <adconrad@ubuntu.com> Fri, 02 May 2008 15:10:32 -0600
livecd-rootfs (0.56) hardy; urgency=low livecd-rootfs (0.56) hardy; urgency=low
* Explicitly install language-support-en first for kubuntu-kde4 * Explicitly install language-support-en first for kubuntu-kde4

@ -70,29 +70,27 @@ OPTMIRROR=
select_mirror () { select_mirror () {
case $ARCH in case $ARCH in
i386|amd64|sparc) i386|amd64)
case $FS in case $FS in
ubuntu-lpia) ubuntu-lpia)
USERMIRROR=http://ports.ubuntu.com/ubuntu-ports USERMIRROR=http://ports.ubuntu.com/ubuntu-ports
SECMIRROR=${USERMIRROR} SECMIRROR=${USERMIRROR}
SECSRCMIRROR=${SRCMIRROR} SECSRCMIRROR=${SRCMIRROR}
TARGETARCH=lpia
;; ;;
*) *)
USERMIRROR=http://archive.ubuntu.com/ubuntu USERMIRROR=http://archive.ubuntu.com/ubuntu
SECMIRROR=http://security.ubuntu.com/ubuntu SECMIRROR=http://security.ubuntu.com/ubuntu
SECSRCMIRROR=${SECMIRROR} SECSRCMIRROR=${SECMIRROR}
TARGETARCH=${ARCH}
;; ;;
esac esac
;; ;;
hppa)
USERMIRROR=http://ports.ubuntu.com/ubuntu-ports
SECMIRROR=${USERMIRROR}
SECSRCMIRROR=${SRCMIRROR}
;;
*) *)
USERMIRROR=http://ports.ubuntu.com/ubuntu-ports USERMIRROR=http://ports.ubuntu.com/ubuntu-ports
SECMIRROR=${USERMIRROR} SECMIRROR=${USERMIRROR}
SECSRCMIRROR=${SRCMIRROR} SECSRCMIRROR=${SRCMIRROR}
TARGETARCH=${ARCH}
;; ;;
esac esac
case $(hostname --fqdn) in case $(hostname --fqdn) in
@ -115,7 +113,7 @@ EXCLUDE=""
LIST="" LIST=""
SUBARCH="" SUBARCH=""
while getopts :d:e:i:I:m:S:s: name; do case $name in while getopts :d:e:i:I:m:S:s:a: name; do case $name in
d) STE=$OPTARG;; d) STE=$OPTARG;;
e) EXCLUDE="$EXCLUDE $OPTARG";; e) EXCLUDE="$EXCLUDE $OPTARG";;
i) LIST="$LIST $OPTARG";; i) LIST="$LIST $OPTARG";;
@ -123,6 +121,7 @@ while getopts :d:e:i:I:m:S:s: name; do case $name in
m) OPTMIRROR="$OPTARG";; m) OPTMIRROR="$OPTARG";;
S) USZ="$OPTARG";; S) USZ="$OPTARG";;
s) SUBARCH="$OPTARG";; s) SUBARCH="$OPTARG";;
a) ARCH="$OPTARG";;
\?) echo bad usage >&2; exit 2;; \?) echo bad usage >&2; exit 2;;
\:) echo missing argument >&2; exit 2;; \:) echo missing argument >&2; exit 2;;
esac; done; esac; done;
@ -131,7 +130,7 @@ shift $((OPTIND-1))
if (( $# == 0 )) || [ "X$1" = "Xall" ]; then if (( $# == 0 )) || [ "X$1" = "Xall" ]; then
set -- ubuntu kubuntu kubuntu-kde4 edubuntu xubuntu gobuntu base set -- ubuntu kubuntu kubuntu-kde4 edubuntu xubuntu gobuntu base
if [ "$ARCH" = "i386" ]; then if [ "$ARCH" = "i386" ]; then
set -- ubuntu ubuntu-dvd ubuntu-lpia kubuntu kubuntu-dvd kubuntu-kde4 edubuntu edubuntu-dvd xubuntu gobuntu base set -- ubuntu ubuntu-dvd kubuntu kubuntu-dvd kubuntu-kde4 edubuntu edubuntu-dvd xubuntu gobuntu base
fi fi
fi fi
@ -231,11 +230,7 @@ Flags: seen
esac esac
dpkg -l livecd-rootfs || true # get our version # in the log. dpkg -l livecd-rootfs || true # get our version # in the log.
if [ "$FS" != "ubuntu-lpia" ]; then debootstrap --components=$(echo $COMP | sed 's/ /,/g') --arch $TARGETARCH $STE $ROOT $MIRROR
debootstrap --components=$(echo $COMP | sed 's/ /,/g') $STE $ROOT $MIRROR
else
debootstrap --components=$(echo $COMP | sed 's/ /,/g') --arch lpia $STE $ROOT $MIRROR
fi
# Just make a few things go away, which lets us skip a few other things. # Just make a few things go away, which lets us skip a few other things.
DIVERTS="usr/sbin/mkinitrd usr/sbin/invoke-rc.d" DIVERTS="usr/sbin/mkinitrd usr/sbin/invoke-rc.d"
@ -257,8 +252,8 @@ for i in range(len(sys.argv)):
trap "cleanup" 0 1 2 3 15 trap "cleanup" 0 1 2 3 15
case $ARCH in case $TARGETARCH in
alpha|amd64|i386|ia64|m68k|mips|mipsel) alpha|amd64|i386|ia64|lpia|m68k|mips|mipsel)
link_in_boot=no link_in_boot=no
;; ;;
*) *)
@ -279,7 +274,7 @@ link_in_boot = $link_in_boot
mkdir -p ${ROOT}proc mkdir -p ${ROOT}proc
mount -tproc none ${ROOT}proc mount -tproc none ${ROOT}proc
case $ARCH+$SUBARCH in case $TARGETARCH+$SUBARCH in
powerpc+ps3) powerpc+ps3)
mkdir -p ${ROOT}spu;; mkdir -p ${ROOT}spu;;
esac esac
@ -289,15 +284,12 @@ link_in_boot = $link_in_boot
cp ${ROOT}etc/apt/trusted.gpg ${ROOT}etc/apt/trusted.gpg.$$ cp ${ROOT}etc/apt/trusted.gpg ${ROOT}etc/apt/trusted.gpg.$$
cat /etc/apt/trusted.gpg >> ${ROOT}etc/apt/trusted.gpg cat /etc/apt/trusted.gpg >> ${ROOT}etc/apt/trusted.gpg
case $ARCH in case $TARGETARCH in
amd64) LIST="$LIST linux-generic";; amd64) LIST="$LIST linux-generic";;
i386) i386) LIST="$LIST linux-generic";;
case $FS in
ubuntu-lpia) LIST="$LIST linux-lpia";;
*) LIST="$LIST linux-generic";;
esac;;
# and the bastard stepchildren # and the bastard stepchildren
lpia) LIST="$LIST linux-lpia";;
ia64) LIST="$LIST linux-itanium linux-mckinley";; ia64) LIST="$LIST linux-itanium linux-mckinley";;
hppa) LIST="$LIST linux-hppa32 linux-hppa64";; hppa) LIST="$LIST linux-hppa32 linux-hppa64";;
powerpc) LIST="$LIST linux-powerpc linux-powerpc64-smp";; powerpc) LIST="$LIST linux-powerpc linux-powerpc64-smp";;
@ -393,7 +385,7 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP}
ln -s livecd.${FSS}.initrd-"${SUBARCH}" livecd.${FSS}.initrd ln -s livecd.${FSS}.initrd-"${SUBARCH}" livecd.${FSS}.initrd
ln -s livecd.${FSS}.kernel-"${SUBARCH}" livecd.${FSS}.kernel ln -s livecd.${FSS}.kernel-"${SUBARCH}" livecd.${FSS}.kernel
fi fi
case $ARCH+$SUBARCH in case $TARGETARCH+$SUBARCH in
powerpc+ps3) powerpc+ps3)
chroot ${ROOT} addgroup --system spu;; chroot ${ROOT} addgroup --system spu;;
esac esac
@ -428,7 +420,7 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP}
livefs_squash() livefs_squash()
{ {
squashsort="http://people.ubuntu.com/~tfheen/livesort/${FSS}.list.${ARCH}" squashsort="http://people.ubuntu.com/~tfheen/livesort/${FSS}.list.${TARGETARCH}"
if wget -O livecd.${FSS}.sort ${squashsort} > /dev/null 2>&1; then if wget -O livecd.${FSS}.sort ${squashsort} > /dev/null 2>&1; then
echo "Using the squashfs sort list from ${squashsort}." echo "Using the squashfs sort list from ${squashsort}."
else else

Loading…
Cancel
Save