@ -67,11 +67,20 @@ SRCMIRROR=http://archive.ubuntu.com/ubuntu
COMP = "main restricted"
COMP = "main restricted"
ARCH = $( dpkg --print-installation-architecture)
ARCH = $( dpkg --print-installation-architecture)
case $ARCH in
case $ARCH in
i386| powerpc| amd64| sparc)
i386| amd64| sparc)
case $FS in
ubuntu-lpia)
USERMIRROR = http://ports.ubuntu.com/ubuntu-ports
SECMIRROR = ${ USERMIRROR }
SECSRCMIRROR = ${ SRCMIRROR }
; ;
*)
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 }
; ;
; ;
esac
; ;
hppa)
hppa)
USERMIRROR = http://ports.ubuntu.com/ubuntu-ports
USERMIRROR = http://ports.ubuntu.com/ubuntu-ports
SECMIRROR = ${ USERMIRROR }
SECMIRROR = ${ USERMIRROR }
@ -114,11 +123,14 @@ shift $((OPTIND-1))
if ( ( $# = = 0 ) ) || [ " X $1 " = "Xall" ] ; then
if ( ( $# = = 0 ) ) || [ " X $1 " = "Xall" ] ; then
set -- ubuntu kubuntu edubuntu xubuntu base
set -- ubuntu kubuntu edubuntu xubuntu base
if [ " $ARCH " = "i386" ] ; then
set -- ubuntu ubuntu-lpia kubuntu edubuntu xubuntu base
fi
fi
fi
for arg in " $@ " ; do
for arg in " $@ " ; do
case " $arg " in
case " $arg " in
ubuntu| edubuntu| kubuntu| xubuntu| base| tocd)
ubuntu| ubuntu-lpia| edubuntu| kubuntu| xubuntu| base| tocd)
; ;
; ;
*)
*)
echo bad name >& 2;
echo bad name >& 2;
@ -131,7 +143,7 @@ ROOT=$(pwd)/chroot-livecd/ # trailing / is CRITICAL
for FS in " $@ " ; do
for FS in " $@ " ; do
FSS = " $FS ${ SUBARCH : +- $SUBARCH } "
FSS = " $FS ${ SUBARCH : +- $SUBARCH } "
IMG = livecd.${ FSS } .fsimg
IMG = livecd.${ FSS } .fsimg
MOUNTS = " ${ ROOT } dev/pts ${ ROOT } dev/shm ${ ROOT } .dev ${ ROOT } dev ${ ROOT } proc "
MOUNTS = " ${ ROOT } dev/pts ${ ROOT } dev/shm ${ ROOT } .dev ${ ROOT } dev ${ ROOT } proc ${ ROOT } sys "
DEV = ""
DEV = ""
rm -rf ${ ROOT }
rm -rf ${ ROOT }
@ -147,25 +159,25 @@ Flags: seen
@@EOF
@@EOF
case " $FS " in
case " $FS " in
ubuntu)
ubuntu| ubuntu-lpia)
LIST = " $LIST minimal^ standard^ ubuntu-desktop^ "
LIST = " $LIST minimal^ standard^ ubuntu-desktop^ "
LIVELIST = "ubuntu-live^ xresprobe laptop-detect casper "
LIVELIST = "ubuntu-live^ xresprobe laptop-detect casper lupin-casper "
; ;
; ;
kubuntu)
kubuntu)
LIST = " $LIST minimal^ standard^ kubuntu-desktop^ "
LIST = " $LIST minimal^ standard^ kubuntu-desktop^ "
LIVELIST = "kubuntu-live^ xresprobe laptop-detect casper "
LIVELIST = "kubuntu-live^ xresprobe laptop-detect casper lupin-casper "
; ;
; ;
edubuntu)
edubuntu)
LIST = " $LIST minimal^ standard^ edubuntu-desktop^ "
LIST = " $LIST minimal^ standard^ edubuntu-desktop^ "
LIVELIST = "edubuntu-live^ xresprobe laptop-detect casper "
LIVELIST = "edubuntu-live^ xresprobe laptop-detect casper lupin-casper "
; ;
; ;
xubuntu)
xubuntu)
LIST = " $LIST minimal^ standard^ xterm libgoffice-gtk-0-4 xubuntu-desktop^ "
LIST = " $LIST minimal^ standard^ xterm libgoffice-gtk-0-4 xubuntu-desktop^ "
LIVELIST = "xubuntu-live^ xresprobe laptop-detect casper "
LIVELIST = "xubuntu-live^ xresprobe laptop-detect casper lupin-casper "
; ;
; ;
base)
base)
LIST = " $LIST minimal^ standard^ "
LIST = " $LIST minimal^ standard^ "
LIVELIST = "casper "
LIVELIST = "casper lupin-casper "
; ;
; ;
tocd)
tocd)
LIST = " $LIST minimal^ standard^ "
LIST = " $LIST minimal^ standard^ "
@ -192,8 +204,12 @@ Flags: seen
LIVELIST = " $tocdlive casper "
LIVELIST = " $tocdlive casper "
esac
esac
#dpkg -l livecd-rootfs # get our version # in the log.
dpkg -l livecd-rootfs # get our version # in the log.
if [ " $FS " != "ubuntu-lpia" ] ; then
debootstrap --components= $( echo $COMP | sed 's/ /,/g' ) $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"
@ -244,7 +260,11 @@ link_in_boot = $link_in_boot
case $ARCH in
case $ARCH in
amd64) LIST = " $LIST linux-generic " ; ;
amd64) LIST = " $LIST linux-generic " ; ;
i386) LIST = " $LIST linux-generic " ; ;
i386)
case $FS in
ubuntu-lpia) LIST = " $LIST linux-lpia " ; ;
*) LIST = " $LIST linux-generic " ; ;
esac ; ;
powerpc)
powerpc)
case $SUBARCH in
case $SUBARCH in
ps3) LIST = " $LIST linux-ps3 " ; ;
ps3) LIST = " $LIST linux-ps3 " ; ;