Chmouel Boudjnah wrote:

>svetljo <[EMAIL PROTECTED]> writes:
>
>>not casual ?
>>
>
>humm i mean that this device (i believe it is not the device but the
>kernel) report wrong size so it can copy it but after booting is
>none... 
>
but it works with zip, so i have pretty much place now
i thought i can not boot from zip ( i have read that somewhere )( ha ha  
so people go for zip !)
and one idea couldn't we have mkbootdisk.lvm with lvmcreate_initrd
or may be i should post this to the LVM-list
i'm not familiar with shell scripts but take a look at the diff, would you

>

*** mkbootdisk.lvm      Mon Sep 17 12:11:09 2001
--- mkbootdisk  Mon Sep 17 12:07:23 2001
***************
*** 175,187 ****
  [ -n "$verbose" ] && echo "done."
  
  [ -n "$verbose" ] && echo -n "Creating initrd image... "
! /sbin/lvmcreate_initrd $mkinitrdargs  $kernel
! cp -a /boot/initrd-lvm-$kernel.gz $MOUNTDIR/initrd.gz
  [ -n "$verbose" ] && echo "done."
  
  [ -n "$verbose" ] && echo -n "Setting up syslinux... "
  
! [ -f $MOUNTDIR/initrd.gz ] && INITRDARG="initrd=initrd.gz"
  
  if [ $(echo $rootdev | cut -b 6-9) = "loop" ]; then
      rootdev=$(ls -l $rootdev | sed 's/,//' | awk '{ printf("%02x%02x\n", $5, $6); }')
--- 175,186 ----
  [ -n "$verbose" ] && echo "done."
  
  [ -n "$verbose" ] && echo -n "Creating initrd image... "
! /sbin/mkinitrd $mkinitrdargs $witheth --ifneeded $MOUNTDIR/initrd.img $kernel
  [ -n "$verbose" ] && echo "done."
  
  [ -n "$verbose" ] && echo -n "Setting up syslinux... "
  
! [ -f $MOUNTDIR/initrd.img ] && INITRDARG="initrd=initrd.img"
  
  if [ $(echo $rootdev | cut -b 6-9) = "loop" ]; then
      rootdev=$(ls -l $rootdev | sed 's/,//' | awk '{ printf("%02x%02x\n", $5, $6); }')

Reply via email to