On 02/21/2014 01:13 PM, Francisco Ares wrote:
> Hi,
>
> I need to create a bootable flash stick, preferably using already
> working Gentoo system (or at least most of it), which was tailored for
> an embedded system.
>
> Already googled around, but I would like to know if anyone has already
> succeeded on this.
>
> Thanks
> Francisco

what I do is this:

1. make your usb stick an PV of your existing LVM volumegroup
2. create a small boot LV
3. install grub2 into the boot LV and onto the boot sector of the usb stick
4. insert stick into live running system
5. lvm convert running system LV into a mirror with one part of the
mirror on the stick. if it's already a mirror make it a 3way etc
6. when done, split the mirror
7. rename the usb into a different volumegroup, called backup for
example, and rename the LV to something sensible
8. configure grub on the usb to boot gentoo from the volume group
backup, root partition
9. eject the usb stick and plug into your other device
10. boot from the usb stick
11. repeat the mirror steps this time going onto the SD/hard drive of
the new device

LVM ftw

Reply via email to