From de54b7e3340b1ae77490ff3e6d82126112298307 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Sat, 22 Jan 2005 05:48:19 +0000 Subject: [PATCH] don't use partimage on 64-bit machines --- debian/changelog | 7 +++++++ debian/control | 2 +- livecd.sh | 27 ++++++++++++++------------- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/debian/changelog b/debian/changelog index 16fab1e8..de88c72a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (0.11) hoary; urgency=low + + * apt-get update in the final chroot + * Change partimage depend to be [ !64-bit ], use partimage conditionally + + -- LaMont Jones Fri, 21 Jan 2005 22:47:46 -0700 + livecd-rootfs (0.10) hoary; urgency=low * Actually run /usr/sbin/locale-gen to generate the locales. diff --git a/debian/control b/debian/control index 506a042b..afd23672 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Standards-Version: 3.6.1.0 Package: livecd-rootfs Architecture: all -Depends: sudo, debootstrap, rsync, cloop-utils, python-minimal|python, partimage +Depends: sudo, debootstrap, rsync, cloop-utils, python-minimal|python, partimage [!ia64 !alpha !amd64] Description: construction script for the livecd rootfs livecd-rootfs provides the script used to create the root filesystem on the livecd. diff --git a/livecd.sh b/livecd.sh index 6f20d249..e3dcfa71 100755 --- a/livecd.sh +++ b/livecd.sh @@ -61,8 +61,7 @@ debootstrap --exclude=udev,ubuntu-base $STE $ROOT $MIRROR DIVERTS="usr/sbin/mkinitrd usr/sbin/invoke-rc.d sbin/udevd" for file in $DIVERTS; do mkdir -p ${ROOT}${file%/*} - sudo chroot $ROOT dpkg-divert --add --local \ - --divert /${file}.livecd --rename /${file} + sudo chroot $ROOT dpkg-divert --add --local --divert /${file}.livecd --rename /${file} cp /bin/true ${ROOT}$file done @@ -70,7 +69,6 @@ done cat << @@EOF > ${ROOT}/usr/sbin/mkinitrd #!/usr/bin/python import sys - for i in range(len(sys.argv)): if sys.argv[i]=='-o': open(sys.argv[i+1],"w") @@ -103,16 +101,16 @@ mount -tproc none ${ROOT}proc cp ${ROOT}etc/apt/trusted.gpg ${ROOT}etc/apt/trusted.gpg.$$ cat /etc/apt/trusted.gpg >> ${ROOT}etc/apt/trusted.gpg -OTHER="xresprobe laptop-detect" +LIST="ubuntu-base ubuntu-desktop xresprobe laptop-detect" case $(dpkg --print-architecture) in - amd64) OTHER="$OTHER linux-amd64-generic";; - i386) OTHER="$OTHER linux-386";; - ia64) OTHER="$OTHER linux-itanium-smp linux-mckinley-smp";; - powerpc) OTHER="$OTHER linux-powerpc linux-power3 linux-power4";; + amd64) LIST="$LIST linux-amd64-generic";; + i386) LIST="$LIST linux-386";; + ia64) LIST="$LIST linux-itanium-smp linux-mckinley-smp";; + powerpc) LIST="$LIST linux-powerpc linux-power3 linux-power4";; # and the bastard stepchildren - hppa) OTHER="$OTHER linux-hppa32-smp linux-hppa64-smp";; - sparc*) OTHER="$OTHER linux-sparc64";; + hppa) LIST="$LIST linux-hppa32-smp linux-hppa64-smp";; + sparc*) LIST="$LIST linux-sparc64";; *) echo "Unknown architecture: no kernel."; exit 1;; esac @@ -120,7 +118,7 @@ esac echo deb $MIRROR $STE main restricted > ${ROOT}etc/apt/sources.list #echo deb http://rockhopper.warthogs.hbd.com/~lamont/lrm / >> ${ROOT}etc/apt/sources.list chroot $ROOT apt-get update -chroot $ROOT apt-get -y install ubuntu-base ubuntu-desktop $OTHER