[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] gentoo disk image for QEmu
From: |
Jérôme Bouat |
Subject: |
Re: [Qemu-devel] gentoo disk image for QEmu |
Date: |
Sat, 12 Mar 2005 10:55:49 +0100 |
Here is what did my scripts in order to install the bootloader :
---
/sbin/losetup $(loop_device_2) $(disk_image).tmp && \
mount -t proc none $(tree)/proc && \
$(chroot) $(tree) /bin/bash install_grub.sh && \
/sbin/losetup -d $(loop_device_2) && \
---
with 'install_grub.sh':
---
/usr/sbin/env-update && source /etc/profile &&
echo using this device map for GRUB: &&
echo --- &&
cat dev.map &&
echo --- &&
grub --device-map=dev.map <<END
root (hd0,0)
setup (hd0)
END
---
But it never worked. Could your tool help me ?
Le lundi 07 mars 2005 à 22:26 +0100, Magnus Damm a écrit :
> Hello,
>
> On Mon, 07 Mar 2005 21:55:36 +0100, Jérôme Bouat
> <address@hidden> wrote:
> > I would generate a Gentoo Linux disk image for QEmu.
> >
> > This source based Linux distro can be configurated to generate hardware
> > specific binaries through its package management system.
> >
> > I previously tried with Bochs. Therefore, I wrote some scripts. The main
> > part of the generation was made in a Linux chrooted environment on a
> > real host which was compatible with the emulated host. The disk image
> > generation was blocked by the boot loader installation step.
>
> I'm not sure I understand your question. Is the problem that the
> chrooted environment was unable to install a bootloader for the target
> system?
>
> I've hacked up a filesystem manipulation tool that is available for download
> at:
>
> http://www.smallworks.com/~jim/fsimage/
>
> The tool is actually a shell script and a small x86 distribution that
> together are used to access filesystems independent of root access or
> host kernel configuration. Needless to say, the tool depends on QEMU.
> 0.6.1 or newer.
>
> I am not sure if the tool is of interest for you, but maybe it helps.
>
> / magnus
>
>
> _______________________________________________
> Qemu-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
Re: [Qemu-devel] gentoo disk image for QEmu,
Jérôme Bouat <=