From 922f41f6e9aa3e38b178f10ed0aefbcc0373c76c Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Sat, 24 Sep 2005 21:51:25 +0000 Subject: [PATCH] architectures (hppa) may use universe, etc. --- debian/changelog | 3 ++- livecd.sh | 27 ++++++++++++++++++--------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/debian/changelog b/debian/changelog index c7cbd680..a387e396 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,9 @@ livecd-rootfs (0.24) hoary-cat-UNRELEASED; urgency=low * Incorporate e2fs-zero.py from Paul Sladen: http://www.paul.sladen.org/ubuntu/e2fszero/e2fs-zero.py * Print package version during script run. + * some HPPA fixes, allow architectures to have more than just main. - -- LaMont Jones Thu, 8 Sep 2005 10:13:48 -0600 + -- LaMont Jones Sat, 24 Sep 2005 15:50:52 -0600 livecd-rootfs (0.23) hoary-cat; urgency=low diff --git a/livecd.sh b/livecd.sh index afce9cb2..3106dad3 100755 --- a/livecd.sh +++ b/livecd.sh @@ -46,17 +46,25 @@ umask 022 export TTY=unknown export TERM=vt100 SRCMIRROR=http://archive.ubuntu.com/ubuntu -case $(dpkg --print-architecture) in +COMP="main restricted" +ARCH=$(dpkg --print-architecture) +case $ARCH in i386|powerpc|amd64) USERMIRROR=http://archive.ubuntu.com/ubuntu SECMIRROR=http://security.ubuntu.com/ubuntu ;; + hppa) + USERMIRROR=http://ports.ubuntu.com/ubuntu-ports + SECMIRROR=${USERMIRROR} + COMP="main restricted universe" + ;; *) USERMIRROR=http://ports.ubuntu.com/ubuntu-ports SECMIRROR=${USERMIRROR} ;; esac case $(hostname --fqdn) in + bld-*.mmjgroup.com) MIRROR=${USERMIRROR};; *.mmjgroup.com) MIRROR=http://ia.mmjgroup.com/${USERMIRROR##*/};; *.ubuntu.com) MIRROR=http://jackass.ubuntu.com;; *.warthogs.hbd.com) MIRROR=http://jackass.ubuntu.com;; @@ -124,7 +132,7 @@ Flags: seen LIST="$LIST xresprobe laptop-detect" ;; kubuntu) - LIST="$LIST ubuntu-base kubuntu-desktop kubuntu-live" + LIST="$LIST kubuntu-base kubuntu-desktop kubuntu-live" LIST="$LIST xresprobe laptop-detect" ;; base) @@ -133,7 +141,7 @@ Flags: seen esac dpkg -l livecd-rootfs # get our version # in the log. - debootstrap $STE $ROOT $MIRROR + debootstrap --components=$(echo $COMP | sed 's/ /,/g') $STE $ROOT $MIRROR # Just make a few things go away, which lets us skip a few other things. DIVERTS="usr/sbin/mkinitrd usr/sbin/invoke-rc.d" @@ -173,7 +181,7 @@ link_in_boot = no cp ${ROOT}etc/apt/trusted.gpg ${ROOT}etc/apt/trusted.gpg.$$ cat /etc/apt/trusted.gpg >> ${ROOT}etc/apt/trusted.gpg - case $(dpkg --print-architecture) in + case $ARCH in amd64) LIST="$LIST linux-amd64-generic";; i386) LIST="$LIST linux-386";; ia64) LIST="$LIST linux-itanium-smp linux-mckinley-smp";; @@ -182,6 +190,7 @@ link_in_boot = no # and the bastard stepchildren hppa) LIST="$LIST linux-hppa32-smp linux-hppa64-smp" EXCLUDE="$EXCLUDE ubuntu-desktop kubuntu-desktop" # can't handle it yet. + EXCLUDE="$EXCLUDE ubuntu-live kubuntu-live" # can't handle it yet. ;; sparc*) LIST="$LIST linux-sparc64";; *) echo "Unknown architecture: no kernel."; exit 1;; @@ -192,7 +201,7 @@ link_in_boot = no done # Create a good sources.list, and finish the install - echo deb $MIRROR $STE main restricted > ${ROOT}etc/apt/sources.list + echo deb $MIRROR $STE ${COMP} > ${ROOT}etc/apt/sources.list chroot $ROOT apt-get update chroot $ROOT apt-get -y install $LIST ${ROOT}etc/apt/sources.list -deb ${USERMIRROR} $STE main restricted -deb-src ${SRCMIRROR} $STE main restricted +deb ${USERMIRROR} $STE ${COMP} +deb-src ${SRCMIRROR} $STE ${COMP} ## Uncomment the following two lines to add software from the 'universe' ## repository. @@ -223,8 +232,8 @@ deb-src ${SRCMIRROR} $STE main restricted # deb ${USERMIRROR} $STE universe # deb-src ${SRCMIRROR} $STE universe -deb ${SECMIRROR} ${STE}-security main restricted -deb-src ${SRCMIRROR} ${STE}-security main restricted +deb ${SECMIRROR} ${STE}-security ${COMP} +deb-src ${SRCMIRROR} ${STE}-security ${COMP} @@EOF mv ${ROOT}etc/apt/trusted.gpg.$$ ${ROOT}etc/apt/trusted.gpg