Re: [Grml] How to setup Xorg keyboard layout ?

2011-09-01 Thread Frédéric Boiteux
Le Fri, 02 Sep 2011 03:22:52 +0200,
Darshaka Pathirana d...@syn-net.org a écrit :

 Hi!
 
 On 01.09.2011 13:53, Frédéric Boiteux wrote:
 …
 Could you tell me what syntax can we use in xkeyboard
  definition, or how to setup my Bépo keyboard layout (if possible) ?
 
 Hmm. Variants of keyboard layouts (currently) does not seem to be
 implemented:
 
 [1] http://qr.cx/J1ri
 
 One need to add a new bootoption (e.g. xkeyvariant) and introduce a
 new variable (e.g. XKEYVARIANT) in '/etc/grml/autoconfig.functions' to
 write this into '/etc/sysconfig/keyboard'.
 
 After that this variable needs to be parsed by 'grml_keyboard' in
 '$HOME/.xinitrc.d' resp. '/etc/skel/.xinitrc.d'.
 
 With these changes it should be possible to set xkeyboard=fr
 xkeyvariant=bepo.
 
 I've attached two (untested) patches (against the files in grml
 2011.05) to get an idea. Maybe it can be helpful or even useful.. ;)

Thanks for your quick reply !

  I don't know well grml yet, only tested the ISO, so I don't know what
to do with your patches yet :-)
  Perhaps it could be simpler to add a new choice in the console menu
proposing different keyboard layouts ?


   Fred.
___
Grml mailing list - Grml@mur.at
http://lists.mur.at/mailman/listinfo/grml
join #grml on irc.freenode.org
grml-devel-blog: http://grml.supersized.org/

Re: [Grml] Trying to boot grml ISO image with grml-rescueboot fails

2011-02-21 Thread Frédéric Boiteux
Hello Michael,

Le 18/02/2011 18:25, Michael Prokop a écrit :
 Can you please try adding the following code after line 36 to
 /etc/grub.d/42_grml:

   $(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT}) | sed -e s/^/
 /)

 so /etc/grub.d/42_grml looks like:

 [...]
   cat  EOF
 menuentry ${title} {
 $(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e s/^//)
 iso_path=${rel_dirname}/$grml $CUSTOM_BOOTOPTIONS
 [...]

 If that works for you I'd apply this fix and upload a new version of
 grml-rescueboot.

   

Your line had a typo (the first ) has to be removed), then I can get
the Grml menu (I've joined my 42_grml file for reference).

 You can add debug=vc manually to the kernel cmdline in Grml's
 bootsplash or just select the debug menu entry if you want a more
 verbose boot mode.

 Notice that you don't need the forensic mode for this situation as
 Grml won't use your swap partition unless you explictely request to
 do so.
   
Thanks for the precision.

I still have a problem booting Grml, but I don't see exaclty what is
wrong and how it can work for you ;-) my Grml booting problem is that
live system doesn't find the ISO, because of problem in kernel command
line :
I get a kernel command line (from my memory) like :
apm=power-off quiet ... iso=/boot/grml/grml64-medium_2010.12.iso  ...

The problem comes from the quotes around ISO path, as set in 42_grml :
iso_path=/boot/grml/grml64-medium_2010.12.iso 
(I don't at first set CUSTOM_BOOTOPTIONS, I then tried with some
options, with the same result)

I have to remove quotes in iso_path definition to be able to boot, then
in that case, I lose optional boot options set in CUSTOM_BOOTOPTIONS).

I've tried to understand how Grml's Grub menu works (with variables like
${isoopts} ${kernelopts}, i'm not sure about the first variable
name), but I don't understand where these variables are set, and how to
have a correct boot command with optional BOOTOPTIONS.

   Perhaps you'll have some ideas about this,

 with regards,
Fred.

#!/bin/sh
# Filename:  42_grml
# Purpose:   grub-mkconfig helper script for Grml rescue systems
# Authors:   grml-team (grml.org), (c) Andreas Gredler ji...@grml.org, 
Michael Prokop m...@grml.org
# Bug-Reports:   see http://grml.org/bugs/
# License:   This file is licensed under the GPL v2+.


set -e

prefix=/usr
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
libdir=${exec_prefix}/lib
. ${libdir}/grub/grub-mkconfig_lib

# default unless configured otherwise:
ISO_LOCATION=/boot/grml

if [ -r /etc/default/grml-rescueboot ] ; then
  . /etc/default/grml-rescueboot
fi

list=$(for i in ${ISO_LOCATION}/*.iso ; do
 if grub_file_is_not_garbage $i ; then echo -n $i  ; fi
   done)

for grmliso in $list ; do
  rel_dirname=$(make_system_path_relative_to_its_root $(dirname $grmliso))
  grml=$(basename $grmliso)

  echo Found Grml ISO image: $grmliso 2
  title=Grml Rescue System ($grml)

  cat  EOF
menuentry ${title} {
 $(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e s/^//)
iso_path=${rel_dirname}/$grml $CUSTOM_BOOTOPTIONS
export iso_path
loopback loop ${rel_dirname}/$grml
set root=(loop)
configfile /boot/grub/loopback.cfg
}
EOF
done

## END OF FILE #
___
Grml mailing list - Grml@mur.at
http://lists.mur.at/mailman/listinfo/grml
join #grml on irc.freenode.org
grml-devel-blog: http://grml.supersized.org/

[Grml] Trying to boot grml ISO image with grml-rescueboot fails

2011-02-18 Thread Frédéric Boiteux
Hello,

  I don't know GRML yet, but I've heard about it in Mikas' blog
(http://michael-prokop.at/blog/2011/01/07/booting-iso-images-from-within-grub2/)
and liked to try it, so I installed grml-rescueboot (0.2.0 version)
debian package from http://deb.grml.org/ and installed it on my Debian
Squeeze system, along with the grml64-medium_2010.12.iso image
in /boot/grml directory. I then tried to boot it through the Grub2's
menu entry, but it didn't work (using menu, we don't see any error
message). I then try to launch every command of the menu entry in
Grub2's command line, and it fails in the line :

 loopback loop /boot/grml/grml-medium_2010.12.iso

telling it doesn't find this file. I think the 'root' setting is
missing, and as I have before Grml a grub menu entry to boot a Windows
partition, the last root setting isn't the right one.

I've manually set 'root' and then I finally got a new menu, from GRML,
and then I tried the 'forensic mode', as I didn't want GRML using my
swap partition (I had an hibernated system there), but the debian-live
system didn't work. I don't have any clue here as the 'debug' variable
wasn't set (and so /live.log was empty), but I'll retry this when I
have some spare time).

   Hope it can help,
Fred.
___
Grml mailing list - Grml@mur.at
http://lists.mur.at/mailman/listinfo/grml
join #grml on irc.freenode.org
grml-devel-blog: http://grml.supersized.org/