mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-22 10:51:11 +00:00
architectures (hppa) may use universe, etc.
This commit is contained in:
parent
98e4c5b8c2
commit
922f41f6e9
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -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 <lamont@ubuntu.com> Thu, 8 Sep 2005 10:13:48 -0600
|
||||
-- LaMont Jones <lamont@ubuntu.com> Sat, 24 Sep 2005 15:50:52 -0600
|
||||
|
||||
livecd-rootfs (0.23) hoary-cat; urgency=low
|
||||
|
||||
|
27
livecd.sh
27
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 </dev/null
|
||||
kill_users
|
||||
@ -210,8 +219,8 @@ link_in_boot = no
|
||||
# And make this look more pristene
|
||||
cleanup
|
||||
cat << @@EOF > ${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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user