You are not logged in.
In an attempt to troubleshoot grub2 on my machine, I am trying to install the grub2-emulator to save me endless reboot cycles. Anyway, below is the PKGUBILD I wrote. Can someone with a functional grub2 try it and let me know if it works? On my machine, running it just gives me the grub2 console, not an emulated grub2 boot screen.
# /usr/sbin/grub-emu
GNU GRUB version 1.98
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command
completions. Anywhere else TAB lists possible device or file completions.
grub>
By the way, typing 'normal' doesn't give me the graphical grub2
pkgname=grub2-emu
pkgver=1.98
pkgrel=1
pkgdesc="The GNU GRand Unified Bootloader"
url="http://www.gnu.org/software/grub/"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('sh' 'lzo2' 'freetype2')
optdepends=('ruby:usr/share/grub/genmk.rb script' 'libusb: /sbin/grub-emu' 'gettext: /sbin/grub-mkconfig')
makedepends=('bdf-unifont' 'ruby')
source=(ftp://alpha.gnu.org/gnu/grub/grub-${pkgver}.tar.gz)
_fake=${srcdir}/fake
build() {
cd $srcdir/grub-${pkgver}
# use /usr/bin/python2 instead
sed -i 's|python|python2|' ${srcdir}/grub-${pkgver}/autogen.sh
# run autogen.sh to create configure files
./autogen.sh
# fix unifont.bdf location
sed -i 's|/usr/src/unifont.bdf|/usr/share/fonts/misc/unifont.bdf|' configure
CFLAGS= ./configure --with-platform=emu --prefix=/usr
CFLAGS= make
}
package() {
cd $srcdir/grub-${pkgver}
if [ -d ${_fake} ]; then
mkdir ${_fake}
fi
make DESTDIR=${_fake} install
mkdir -p ${pkgdir}/usr/sbin
install -m755 ${_fake}/usr/sbin/grub-emu ${pkgdir}/usr/sbin/grub-emu
}
sha256sums=('bef2c1892e052967b65aab6aa62ac702c0e50ef8848506eacf3c0b2f5007c614')
Last edited by graysky (2010-11-18 20:01:57)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I use grub2 in BIOS+GPT configuration. But I use grub2 bzr trunk (which is at 1.99~beta0 for now), not 1.98. A lot of things have changed between 1.98 and the current bzr trunk. Can you create a PKGBUILD similar to grub2-bios-bzr (http://aur.archlinux.org/packages.php?ID=41055 - which BTW I maintain) ? If you have any specific problem which you are unable to troubleshoot please mention it.
My new forum user/nick name is "the.ridikulus.rat" .
Offline
You're using grub2 in BIOS? What does that mean exactly? Also, I didn't see that your package provides the emu.... does it?
Last edited by graysky (2010-11-19 21:35:46)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
@garysky: That means apart from using grub2 with the usual BIOS firmware, I also use it in x86_64 UEFI (UEFI+GPT) (http://aur.archlinux.org/packages.php?ID=40290). Different firmwares and Partitioning styles have different requirements/ways to setup grub2. Grub2 supports many platforms unlike grub-legacy (like PPC, sparc, coreboot etc.). Grub2 emu is considered a separate platform and I have not tried it, that requires a separate PKGBUILD similar to burg-emu-fixed or like the above grub2-emu (but should be updated).
For an emulated boot screen grub2 emu needs to access the grub.cfg config file in your /boot/grub or /boot/grub2 dir. I don't know how to do that in the emulator so I can't help you there. If you can find out what exactly is the problem with the real grub2 in ur machine, maybe that can be sorted out.
I will try ur PKGBUILD and if update it for bzr trunk (I don't expect any big changes needed thought) but only after a week, when I have some free time after exams.
Note: I remember grub2 devs mentioning in irc that grub2 emu is not similar to what a virtual machine does for testing OSes.
My new forum user/nick name is "the.ridikulus.rat" .
Offline