Your message dated Thu, 22 Jun 2006 20:15:13 +0200
with message-id <[EMAIL PROTECTED]>
and subject line (no subject)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: bootcd-i386
Version: 2.53
Severity: grave
Justification: renders package unusable

Hello,
I'm unable to create a bootcd starting from a clean debootstrapped Etch.

The error while booting is:
umount: /devfs: Invalid argument
pivot_root: pivot_root: No such file or directory
/sbin/init: 432: cannot open dev/console: No such file
Kernel panic - not syncing: Attempted to kill init!

I use it regularly on Sarge, also witch backported kernel 2.6.15.

Thanks,
Alex

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (90, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.12-1-k7-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)


--- End Message ---
--- Begin Message ---
Hi,

With the following script it is possible to build a bootcd with debootstrap
for etch.

It seemst to be not easy to modify the chgroot built by debootstrap,
so that it can be used for bootcd. Probably there is an easier way to do it.

But this is not the job of bootcd. Instead bootcd tries not to change
anything on your system when using bootcdwrite.

#!/bin/sh
# Skript: debootstrapbootcd
# Author: Bernd Schumacher
# Created: 2006/06/06 - 2006/06/14
#
#
# This script proofs that it is possible to build a bootcd with debootstrap.
# This script will probably only work in the days when it was created, because
# it uses testing and unstable packages, that can change rapidly.
# The author will probably not maintain this script any longer.

# CHROOT will be the directory for the debootstrap debian installation
# CHROOT.debootstrap.tgz will be a backup after running debootstrap
# CHROOT.kernel.tgz will be a backup after installing the kernel
CHROOT=/tmp/chroot
DIST=etch
DEBIAN=http://ftp.debian.org/debian/

# clean workdir
umount $CHROOT/proc >/dev/null 2>&1
rm -rf $CHROOT
mkdir $CHROOT

# use cache if possible
if [ -f $CHROOT.kernel.tgz ]; then
  (cd $CHROOT; tar xzf $CHROOT.kernel.tgz)
elif [ -f $CHROOT.debootstrap.tgz ]; then
  (cd $CHROOT; tar xzf $CHROOT.debootstrap.tgz)
fi

# debootstrap
if [ ! -f $CHROOT.debootstrap.tgz -a ! -f $CHROOT.kernel.tgz ]; then
  debootstrap $DIST $CHROOT $DEBIAN
  (cd $CHROOT; tar czf $CHROOT.debootstrap.tgz --exclude=./proc/* .)
fi

# install kernel
if [ ! -f $CHROOT.kernel.tgz ]; then

  # create /etc/fstab (needed for mkinitrd later)
  ROOTENTRY=$(grep "^[^[:space:]]*[[:space:]]\+/[[:space:]]" /etc/fstab)
  echo "$ROOTENTRY" > $CHROOT/etc/fstab
  echo "$ROOTENTRY" > $CHROOT/etc/mtab

  # create rootdisk device (needed for mkinitrd later)
  ROOTDEV=$(echo "$ROOTENTRY" | awk '{print $1}')
  cp -a $ROOTDEV $CHROOT/$ROOTDEV

  # mount /proc
  # this is needed for bootcdmkinitrd to work later
  chroot $CHROOT mount proc /proc -t proc

  # prevent interactive kernel installation questions
  (
  echo "do_symlinks = Yes"
  echo "do_initrd = Yes"
  ) | chroot $CHROOT sh -c "cat > /etc/kernel-img.conf"

  # install kernel
  chroot $CHROOT apt-get update
  chroot $CHROOT apt-get -y install initrd-tools grub
  chroot $CHROOT apt-get -y install linux-image-2.6.15-1-486

  # create missing devices
  # this is needed for getty to work after booting
  chroot $CHROOT sh -c '
    for i in 0 1 2 3 4 5 6; do
      mknod /lib/udev/devices/tty$i c 4 $i
      chown root:tty /lib/udev/devices/tty$i
      chmod 666 /lib/udev/devices/tty$i
    done
  '

  (cd $CHROOT; tar czf $CHROOT.kernel.tgz --exclude=./proc/* .)
fi

# install bootcd from unstable
echo "deb http://ftp.debian.org/debian sid main" > $CHROOT/etc/apt/sources.list
chroot $CHROOT apt-get update
chroot $CHROOT apt-get -y install bootcd-mkinitrd grub

# build initrd for bootcd. Answer yes to start, and ignore problems
echo "y
i
i" | chroot $CHROOT bootcdmkinitrd

# bootcdwrite
chroot $CHROOT bootcdwrite -s




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

--- End Message ---

Reply via email to