From 3e1e7ae391fb5738535b72a5055b272b1079edd5 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Wed, 1 Jun 2005 06:09:24 +0000 Subject: [PATCH] postfix stripping conditional, ports.u.c fixes --- debian/changelog | 8 ++++++++ livecd.sh | 17 ++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3f1f7e35..35a4c081 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +livecd-rootfs (0.21) hoary-cat-UNRELEASED; urgency=low + + * a bit more ports.ubuntu.com cleanup: deb-src still needs to point at + archive.ubuntu.com. + * postfix isn't there anymore, make the postfix stripping stuff conditional. + + -- LaMont Jones Wed, 1 Jun 2005 00:08:09 -0600 + livecd-rootfs (0.20) hoary-cat; urgency=low * incorporate ports.ubuntu.com repositories diff --git a/livecd.sh b/livecd.sh index 68ef3082..91339132 100755 --- a/livecd.sh +++ b/livecd.sh @@ -45,6 +45,7 @@ fi umask 022 export TTY=unknown export TERM=vt100 +SRCMIRROR=http://archive.ubuntu.com/ubuntu case $(dpkg --print-architecture) in i386|powerpc|amd64) USERMIRROR=http://archive.ubuntu.com/ubuntu @@ -209,7 +210,7 @@ link_in_boot = no cleanup cat << @@EOF > ${ROOT}etc/apt/sources.list deb ${USERMIRROR} $STE main restricted -deb-src ${USERMIRROR} $STE main restricted +deb-src ${SRCMIRROR} $STE main restricted ## Uncomment the following two lines to add software from the 'universe' ## repository. @@ -219,10 +220,10 @@ deb-src ${USERMIRROR} $STE main restricted ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. # deb ${USERMIRROR} $STE universe -# deb-src ${USERMIRROR} $STE universe +# deb-src ${SRCMIRROR} $STE universe deb ${SECMIRROR} ${STE}-security main restricted -deb-src ${SECMIRROR} ${STE}-security main restricted +deb-src ${SRCMIRROR} ${STE}-security main restricted @@EOF mv ${ROOT}etc/apt/trusted.gpg.$$ ${ROOT}etc/apt/trusted.gpg @@ -231,10 +232,12 @@ deb-src ${SECMIRROR} ${STE}-security main restricted rm -f ${ROOT}var/lib/apt/lists/*_* rm -f ${ROOT}var/spool/postfix/maildrop/* chroot $ROOT apt-get update || true # give them fresh lists, but don't fail - rm ${ROOT}etc/resolv.conf ${ROOT}etc/mailname - sed -i '/^myhostname/d; /^mydestination/d; /^myorigin/d' ${ROOT}etc/postfix/main.cf - echo set postfix/destinations | chroot ${ROOT} /usr/bin/debconf-communicate postfix - echo set postfix/mailname | chroot ${ROOT} /usr/bin/debconf-communicate postfix + rm -f ${ROOT}etc/resolv.conf ${ROOT}etc/mailname + if [ -f ${ROOT}/etc/postfix/main.cf ]; then + sed -i '/^myhostname/d; /^mydestination/d; /^myorigin/d' ${ROOT}etc/postfix/main.cf + echo set postfix/destinations | chroot ${ROOT} /usr/bin/debconf-communicate postfix + echo set postfix/mailname | chroot ${ROOT} /usr/bin/debconf-communicate postfix + fi chroot ${ROOT} dpkg-query -W --showformat='${Package} ${Version}\n' > livecd.${FS}.manifest mkdir -p livecd.mnt