From 99fd422f7e539148e43aa235c2147ca061286fb2 Mon Sep 17 00:00:00 2001 From: Adam Conrad Date: Fri, 10 Mar 2006 09:06:12 +0000 Subject: [PATCH] live/desktop split --- debian/changelog | 3 +++ livecd.sh | 26 ++++++++++++++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/debian/changelog b/debian/changelog index c6c86af5..b91596bf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,9 @@ livecd-rootfs (0.27) UNRELEASED; urgency=low * Copy the kernel out of the livefs as well, so we have one that matches. * Enable rudimentary support for squashfs filesystems, initially enabling it on the primary architectures only (powerpc, i386, amd64) + * Split the package LIST into LIST and LIVELIST, and generate a manifest + before installing LIVELIST, so espresso can calculate the difference. + * Use --print-installation-architecture instead of --print-architecture [ LaMont Jones ] * umount /var/{run,lock} diff --git a/livecd.sh b/livecd.sh index 5febeabb..9a59c337 100755 --- a/livecd.sh +++ b/livecd.sh @@ -50,7 +50,7 @@ export TTY=unknown export TERM=vt100 SRCMIRROR=http://archive.ubuntu.com/ubuntu COMP="main restricted" -ARCH=$(dpkg --print-architecture) +ARCH=$(dpkg --print-installation-architecture) case $ARCH in i386|powerpc|amd64) USERMIRROR=http://archive.ubuntu.com/ubuntu @@ -134,19 +134,20 @@ Flags: seen case "$FS" in ubuntu) - LIST="$LIST ubuntu-base ubuntu-desktop ubuntu-live" - LIST="$LIST xresprobe laptop-detect casper" + LIST="$LIST ubuntu-base ubuntu-desktop" + LIVELIST="ubuntu-live xresprobe laptop-detect casper" ;; kubuntu) - LIST="$LIST ubuntu-base kubuntu-desktop kubuntu-live" - LIST="$LIST xresprobe laptop-detect casper" + LIST="$LIST ubuntu-base kubuntu-desktop" + LIVELIST="kubuntu-live xresprobe laptop-detect casper" ;; edubuntu) - LIST="$LIST ubuntu-base edubuntu-desktop edubuntu-live" - LIST="$LIST xresprobe laptop-detect casper" + LIST="$LIST ubuntu-base edubuntu-desktop" + LIVELIST="edubuntu-live xresprobe laptop-detect casper" ;; base) - LIST="$LIST ubuntu-base casper" + LIST="$LIST ubuntu-base" + LIVELIST="casper" ;; tocd) LIST="$LIST ubuntu-base" @@ -169,7 +170,8 @@ Flags: seen exit 1 fi [ -d "$tocdtmp" ] && rm -rf "$tocdtmp" - LIST="$LIST $tocddesktop $tocdlive" + LIST="$LIST $tocddesktop" + LIVELIST="$tocdlive casper" esac dpkg -l livecd-rootfs # get our version # in the log. @@ -233,6 +235,11 @@ link_in_boot = no echo deb $MIRROR $STE ${COMP} > ${ROOT}etc/apt/sources.list chroot $ROOT apt-get update chroot $ROOT apt-get -y install $LIST livecd.${FS}.manifest-desktop + chroot $ROOT apt-get -y install $LIVELIST livecd.${FS}.manifest kill_users chroot $ROOT /etc/cron.daily/slocate || true @@ -279,7 +286,6 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP} 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 KVERS=`chroot ${ROOT} dpkg -l linux-image-2\*|grep ^i|awk '{print $2}'|sed 's/linux-image-//'` for KVER in ${KVERS}; do SUBARCH="${KVER#*-*-}"