← Back to team overview

lubuntu-qa team mailing list archive

Re: [Bug 1227202] Re: Unexpected freezes Saucy

 

On 09/21/2013 03:19 PM, Phill Whiteside wrote:

> If the issues of zram cannot be fixed for our desktop installer,
> then there are also much more serious issues for zram and the kernel.
> If Jopseph cannot sort out the issue, I see little choice but to ask
> Julien to disable z-ram. That request would weigh very heavy on my
> heart, Kernel freeze is not just yet, so I am hopeful that the
> required patches can be pulled in. Yes, we may be sailing close to
> 'freeze', but it is a 'bug".

Update: I tried to create an ISO today with the new kernel (vmlinuz)
from Joseph's packages at casper/vmlinuz.  No other changes to the ISO
at all.  It boots that new kernel... to an initramfs prompt saying it
can't find the live filesystem.  Ugh.

I suspect that issue relates to needing to also update casper/initrd.lz
filesystem to match the kernel.  I'm in the process of attempting that,
but I am running out of time, I have other committments this evening and
basically all day Sunday.  I'll do my best, but it's not looking good at
this point for a working test ISO this weekend from me.

If anyone else "out there" is also working on creating a test ISO with
Joseph's kernel in it, PLEASE say so, so we can avoid duplicated work,
and so I can relax a little!

My current script (that fails as described above, perhaps because it
does not update the initrd.lz) is attached, in case it is useful to anyone.

Jonathan

#!/bin/bash
# add-fixed-kernel.sh
# Author: Jonathan Marsden <jmarsden@xxxxxxxxxxx>
# Date: 2013-09-21

set -e	# Abort on error

ISODIR=/usr/local/isos	# Where to store ISO images
ORIGISOFILE=saucy-20130920-desktop-amd64.iso
ISOFILE="lubuntu-saucy-desktop-test-$(date +%Y%m%d)-amd64.iso"
TEMPAREA=~/tmp		# Temporary workspace for ISO contents
IMAGE_NAME="lubuntu-$(date +%Y%m%d)"

mkdir -p "$ISODIR"
mkdir -p "$TEMPAREA"

# Download test kernel
wget -q -c http://kernel.ubuntu.com/~jsalisbury/lp1227202/linux-image-3.11.0-7-generic_3.11.0-7.14~lp1227202v1_amd64.deb
wget -q -c http://kernel.ubuntu.com/~jsalisbury/lp1227202/linux-image-extra-3.11.0-7-generic_3.11.0-7.14~lp1227202v1_amd64.deb

wget -q -c http://kernel.ubuntu.com/~jsalisbury/lp1227202/linux-headers-3.11.0-7-generic_3.11.0-7.14~lp1227202v1_amd64.deb
wget -q -c http://kernel.ubuntu.com/~jsalisbury/lp1227202/linux-headers-3.11.0-7_3.11.0-7.14~lp1227202v1_all.deb
wget -q -c http://kernel.ubuntu.com/~jsalisbury/lp1227202/linux-tools-3.11.0-7-generic_3.11.0-7.14~lp1227202v1_amd64.deb

# Download Lubuntu ISO
wget -q -c -O "$ISODIR"/"$ORIGISOFILE" http://cdimage.ubuntu.com/lubuntu/daily-live/20130920/saucy-desktop-amd64.iso

# Extract vmlinuz from fixed kernel package
# File is boot/vmlinuz-3.11.0-7-generic, compare to casper/vmlinuz within ISO
dpkg-deb -x linux-image-3.11.0-7-generic_3.11.0-7.14~lp1227202v1_amd64.deb linux-image

# Mount and copy ISO contents to temp work area
tempmount=/tmp/$0.tempmount.$$
mkdir -p $tempmount

loopdev=$(sudo losetup -f)
sudo losetup $loopdev "$ISODIR"/"$ORIGISOFILE"
sudo mount -r -t iso9660 $loopdev $tempmount
echo $ORIGISOFILE is mounted at $tempmount

# Work on loop mounted ISO
# Copy all files to temp area
sudo cp -a $tempmount/* "$TEMPAREA"/

# Unmount original ISO
sudo umount $loopdev
sudo losetup -d $loopdev
rmdir $tempmount

# Copy new vmlinuz to temp area
sudo cp -p linux-image/boot/vmlinuz-3.11.0-7-generic "$TEMPAREA"/casper/vmlinuz

# Should probably generate initrd here and copy it in! JM FIXME

# boot.cat and md5sum.txt fixup goes here.  Ignore for now. JM 20130921

# Create an Lubuntu ISO from the image directory tree
sudo mkisofs -r -V "$IMAGE_NAME" -cache-inodes -J -l \
  -b isolinux/isolinux.bin -c isolinux/boot.cat \
  -no-emul-boot -boot-load-size 4 -boot-info-table \
  --publisher "${DEBFULLNAME:-$USER}" \
  --volset "Lubuntu Linux Saucy Test $(date +%Y%m%d) http://www.ubuntu.com"; \
  -p "${DEBFULLNAME:-$USER} <${DEBEMAIL:-on host $(hostname --fqdn)}>" \
  -A "$IMAGE_NAME" \
  -o "$ISODIR"/"$ISOFILE" "$TEMPAREA"

# Fix up ownership and permissions on newly created ISO file
cd "$ISODIR"
sudo chown $USER:$USER "$ISOFILE"
chmod 0444 "$ISOFILE"

# Create the associated md5sum file
md5sum $ISOFILE >${ISOFILE}.md5
echo $0: Fixed ISO created at $ISODIR/$ISOFILE

Follow ups

References