From 1931bf3870a7de78999a0fd574b5f674ef1f7a23 Mon Sep 17 00:00:00 2001 From: Adam Conrad Date: Tue, 13 Dec 2005 16:02:45 +0000 Subject: [PATCH] copy out the initrd --- debian/changelog | 4 ++-- livecd.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 18195436..9ac36533 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,8 @@ livecd-rootfs (0.26) hoary-cat-UNRELEASED; urgency=low - * dummy entry + * Copy the initrd out of the livefs for us in the SimplifiedLiveCD setup - -- LaMont Jones Thu, 24 Nov 2005 10:15:44 -0700 + -- Adam Conrad Wed, 14 Dec 2005 02:58:19 +1100 livecd-rootfs (0.25) hoary-cat; urgency=low diff --git a/livecd.sh b/livecd.sh index 4d26135f..976251e5 100755 --- a/livecd.sh +++ b/livecd.sh @@ -277,6 +277,8 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP} echo set postfix/mailname | chroot ${ROOT} /usr/bin/debconf-communicate postfix fi chroot ${ROOT} dpkg-query -W --showformat='${Package} ${Version}\n' > livecd.${FS}.manifest + KVER=`chroot ${ROOT} dpkg -l linux-image-2\*|grep ^i|awk '{print $2}'|sed 's/linux-image-//'` + cp ${ROOT}/boot/initrd.img-"$KVER" livecd.${FS}.initrd mkdir -p livecd.mnt MOUNTS="$MOUNTS $(pwd)/livecd.mnt"