mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-23 00:31:33 +00:00
Import patches-unapplied version 0.34 to ubuntu/gutsy
Imported using git-ubuntu import. Changelog parent: 46ce707e6d8281cc3e140b29a1b55266812decb1 New changelog entries: * Rearrange lpia mirror selection hacks to work properly; FS isn't set until a bit later on.
This commit is contained in:
parent
46ce707e6d
commit
e8ee9f39d6
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
livecd-rootfs (0.34) gutsy; urgency=low
|
||||||
|
|
||||||
|
* Rearrange lpia mirror selection hacks to work properly; FS isn't set
|
||||||
|
until a bit later on.
|
||||||
|
|
||||||
|
-- Colin Watson <cjwatson@ubuntu.com> Sat, 08 Sep 2007 22:56:32 +0100
|
||||||
|
|
||||||
livecd-rootfs (0.33) gutsy; urgency=low
|
livecd-rootfs (0.33) gutsy; urgency=low
|
||||||
|
|
||||||
[ Adam Conrad ]
|
[ Adam Conrad ]
|
||||||
|
88
livecd.sh
88
livecd.sh
@ -66,42 +66,50 @@ export LANG=C
|
|||||||
SRCMIRROR=http://archive.ubuntu.com/ubuntu
|
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
|
OPTMIRROR=
|
||||||
i386|amd64|sparc)
|
|
||||||
case $FS in
|
select_mirror () {
|
||||||
ubuntu-lpia)
|
case $ARCH in
|
||||||
USERMIRROR=http://ports.ubuntu.com/ubuntu-ports
|
i386|amd64|sparc)
|
||||||
SECMIRROR=${USERMIRROR}
|
case $FS in
|
||||||
SECSRCMIRROR=${SRCMIRROR}
|
ubuntu-lpia)
|
||||||
;;
|
USERMIRROR=http://ports.ubuntu.com/ubuntu-ports
|
||||||
*)
|
SECMIRROR=${USERMIRROR}
|
||||||
USERMIRROR=http://archive.ubuntu.com/ubuntu
|
SECSRCMIRROR=${SRCMIRROR}
|
||||||
SECMIRROR=http://security.ubuntu.com/ubuntu
|
;;
|
||||||
SECSRCMIRROR=${SECMIRROR}
|
*)
|
||||||
;;
|
USERMIRROR=http://archive.ubuntu.com/ubuntu
|
||||||
esac
|
SECMIRROR=http://security.ubuntu.com/ubuntu
|
||||||
;;
|
SECSRCMIRROR=${SECMIRROR}
|
||||||
hppa)
|
;;
|
||||||
USERMIRROR=http://ports.ubuntu.com/ubuntu-ports
|
esac
|
||||||
SECMIRROR=${USERMIRROR}
|
;;
|
||||||
SECSRCMIRROR=${SRCMIRROR}
|
hppa)
|
||||||
#COMP="main restricted universe"
|
USERMIRROR=http://ports.ubuntu.com/ubuntu-ports
|
||||||
;;
|
SECMIRROR=${USERMIRROR}
|
||||||
*)
|
SECSRCMIRROR=${SRCMIRROR}
|
||||||
USERMIRROR=http://ports.ubuntu.com/ubuntu-ports
|
#COMP="main restricted universe"
|
||||||
SECMIRROR=${USERMIRROR}
|
;;
|
||||||
SECSRCMIRROR=${SRCMIRROR}
|
*)
|
||||||
;;
|
USERMIRROR=http://ports.ubuntu.com/ubuntu-ports
|
||||||
esac
|
SECMIRROR=${USERMIRROR}
|
||||||
case $(hostname --fqdn) in
|
SECSRCMIRROR=${SRCMIRROR}
|
||||||
bld-*.mmjgroup.com) MIRROR=${USERMIRROR};;
|
;;
|
||||||
*.mmjgroup.com) MIRROR=http://archive.mmjgroup.com/${USERMIRROR##*/};;
|
esac
|
||||||
*.0c3.net) MIRROR=http://ftp.iinet.net.au/linux/ubuntu;;
|
case $(hostname --fqdn) in
|
||||||
*.ubuntu.com) MIRROR=http://ftpmaster.internal/ubuntu;;
|
bld-*.mmjgroup.com) MIRROR=${USERMIRROR};;
|
||||||
*.warthogs.hbd.com) MIRROR=http://ftpmaster.internal/ubuntu;;
|
*.mmjgroup.com) MIRROR=http://archive.mmjgroup.com/${USERMIRROR##*/};;
|
||||||
*.buildd) MIRROR=http://ftpmaster.internal/ubuntu;;
|
*.0c3.net) MIRROR=http://ftp.iinet.net.au/linux/ubuntu;;
|
||||||
*) MIRROR=${USERMIRROR};;
|
*.ubuntu.com) MIRROR=http://ftpmaster.internal/ubuntu;;
|
||||||
esac
|
*.warthogs.hbd.com) MIRROR=http://ftpmaster.internal/ubuntu;;
|
||||||
|
*.buildd) MIRROR=http://ftpmaster.internal/ubuntu;;
|
||||||
|
*) MIRROR=${USERMIRROR};;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ "$OPTMIRROR" ]; then
|
||||||
|
MIRROR="$OPTMIRROR"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
STE=gutsy
|
STE=gutsy
|
||||||
EXCLUDE=""
|
EXCLUDE=""
|
||||||
@ -113,7 +121,7 @@ while getopts :d:e:i:I:mS::s: name; do case $name in
|
|||||||
e) EXCLUDE="$EXCLUDE $OPTARG";;
|
e) EXCLUDE="$EXCLUDE $OPTARG";;
|
||||||
i) LIST="$LIST $OPTARG";;
|
i) LIST="$LIST $OPTARG";;
|
||||||
I) UINUM=$(sanitize int "$OPTARG");;
|
I) UINUM=$(sanitize int "$OPTARG");;
|
||||||
m) MIRROR=$(sanitize url "$OPTARG");;
|
m) OPTMIRROR=$(sanitize url "$OPTARG");;
|
||||||
S) USZ=$(sanitize int "$OPTARG");;
|
S) USZ=$(sanitize int "$OPTARG");;
|
||||||
s) SUBARCH="$OPTARG";;
|
s) SUBARCH="$OPTARG";;
|
||||||
\?) echo bad usage >&2; exit 2;;
|
\?) echo bad usage >&2; exit 2;;
|
||||||
@ -146,6 +154,8 @@ for FS in "$@"; do
|
|||||||
MOUNTS="${ROOT}dev/pts ${ROOT}dev/shm ${ROOT}.dev ${ROOT}dev ${ROOT}proc ${ROOT}sys"
|
MOUNTS="${ROOT}dev/pts ${ROOT}dev/shm ${ROOT}.dev ${ROOT}dev ${ROOT}proc ${ROOT}sys"
|
||||||
DEV=""
|
DEV=""
|
||||||
|
|
||||||
|
select_mirror
|
||||||
|
|
||||||
rm -rf ${ROOT}
|
rm -rf ${ROOT}
|
||||||
|
|
||||||
mkdir -p ${ROOT}var/cache/debconf
|
mkdir -p ${ROOT}var/cache/debconf
|
||||||
@ -314,7 +324,7 @@ link_in_boot = $link_in_boot
|
|||||||
chroot $ROOT dpkg-divert --remove --rename /${file}
|
chroot $ROOT dpkg-divert --remove --rename /${file}
|
||||||
done
|
done
|
||||||
|
|
||||||
# And make this look more pristene
|
# And make this look more pristine
|
||||||
cleanup
|
cleanup
|
||||||
cat << @@EOF > ${ROOT}etc/apt/sources.list
|
cat << @@EOF > ${ROOT}etc/apt/sources.list
|
||||||
deb ${USERMIRROR} $STE ${COMP}
|
deb ${USERMIRROR} $STE ${COMP}
|
||||||
@ -364,7 +374,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
|
||||||
# all done with the chroot; reset the deconf frontend, so Colin doesn't cry
|
# all done with the chroot; reset the debconf frontend, so Colin doesn't cry
|
||||||
echo RESET debconf/frontend | chroot $ROOT debconf-communicate
|
echo RESET debconf/frontend | chroot $ROOT debconf-communicate
|
||||||
echo FSET debconf/frontend seen true | chroot $ROOT debconf-communicate
|
echo FSET debconf/frontend seen true | chroot $ROOT debconf-communicate
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user