[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Minutes of #debian-boot meeting of 20040706 (was: Debian Installer IRC meeting on Tuesday 07/06 20:00 UTC)



On Thu, Jul 08, 2004 at 07:43:13PM -0500, Adam Thornton wrote:
> I have patches, but I don't know if I'm deriving the disk information
> the right way.

> --- zipl-installer.postinst.orig	2004-07-01 10:51:19.000000000 -0400
> +++ zipl-installer.postinst	2004-07-01 10:54:57.000000000 -0400
> @@ -5,6 +5,21 @@
>  db_get debian-installer/kernel/commandline
>  PARAMETER=$RET
>  
> +PARMFILE="ro noinitrd vmpoff=\"LOGOFF\""
> +DASD="dasd="
> +set -- `cut -b 1-4 /proc/dasd/devices`
> +while [ $1 ]; do
> +    DASD=${DASD}$1
> +    shift;
> +    if [ $1 ]; then
> +        DASD=${DASD}","
> +    fi
> +done
> +ROOT=`df /target | tail -1 | cut -d ' ' -f 1`
> +ROOT="root="${ROOT}

Other architectures do that like this:

  findfs () {
      mount | grep "on /target${1%/} " | cut -d' ' -f1
  }

  ROOT="$(findfs /)"
  ROOT="root=$ROOT"

However, you may also want to un-devfs the device name. If so, try
something like this:

  ROOTDEV="$(findfs /)"
  ROOT="$(mapdevfs "$ROOTDEV")"

  PARMFILE="$PARMFILE root=$ROOT $DASD"

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: