|
|
|
@ -277,8 +277,17 @@ 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
|
|
|
|
|
KVERS=`chroot ${ROOT} dpkg -l linux-image-2\*|grep ^i|awk '{print $2}'|sed 's/linux-image-//'`
|
|
|
|
|
for KVER in ${KVERS}; do
|
|
|
|
|
SUBARCH="${KVER#*-*-}"
|
|
|
|
|
chroot ${ROOT} update-initramfs -k "${KVER}" -u
|
|
|
|
|
cp ${ROOT}/boot/initrd.img-"${KVER}" livecd.${FS}.initrd-"${SUBARCH}"
|
|
|
|
|
done
|
|
|
|
|
if [ "${KVERS% *}" = "$KVERS" ]; then
|
|
|
|
|
# only one kernel
|
|
|
|
|
SUBARCH="${KVERS#*-*-}"
|
|
|
|
|
ln -s livecd.${FS}.initrd-"${SUBARCH}" livecd.${FS}.initrd
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
mkdir -p livecd.mnt
|
|
|
|
|
MOUNTS="$MOUNTS $(pwd)/livecd.mnt"
|
|
|
|
|