I have couple of servers running off of an usb stick each. Servers are basically hypervizors.
What I was thinking of doing is distributing binary updates in form of downloading system image and unpacking it directly onto live usb disk device, followed by a reboot. This technique would boil down to dd if=newimage.img of=/dev/sda && reboot.
However, I have tried this, and it doesn't quite work as expected. Newly imaged disk is unable to boot.
As it's possible to run series of commands on each host and have them updated that way most of the time, this is not something critical to me. But, I'd like to learn if there's a way to unpack disk image on top of live running system, and have it boot properly into new environment, whichever it is. For example, I might decide to replace those linuxes by completely different OS some day, who knows :)
Ideas, suggestions?
dd if=newimage.img of=/dev/sdNgive you a bootable USB device when performed on a machine that is not using sdN? – Norky Jun 2 '11 at 9:01dd if=/dev/sda of=/dev/sdNcreated bootable volume, while system was running from /dev/sda. – mr.b Jun 2 '11 at 9:30wget http://...gz -O - | gunzip | dd of=/dev/sda– mr.b Jun 7 '11 at 0:57