Daniel Baumann wrote:
Cyril Jaquier wrote:
Hi all,
Hi,
interface. Is it possible to replace a squashfs file at runtime?
I personally didn't try it yet on the fly yet, so no idea if it really
works or not.
1/ remount /live/image as rw
2/ copy the new squashfs image over /live/image/live/filesystem.squashfs
3/ copy the new kernel and initrd
4/ remount /live/image as ro
5/ reboot
given that all other approaches suck that come to mind right now
(storing new filesystem on different name on the cf card, and moving it
at boot time - possibly needs a lot of free space; or booting in
'firmware update modus' prior actual update aka toram, where the cf card
wouldn't be used at all anymore and where one could directly
rsync/copy/unpack the new filesystem over the old one - possibly needs a
lot of free ram), i would if i were you just try it out and report back
if it works or not :P
Thanks for your reply. The "toram" option seems to be a possible
solution. The Alix board has 256MB of RAM so it should be possible to
boot with this parameter and then replace the required files. I guess it
is possible to change the parameters for the next boot if I write them
to /live/image/syslinux/menu.cfg (on the vfat partition of course). Or
doesn't syslinux read this file at bootup? I will try it but it is not
on top of my todo list at the moment.
Cheers from Switzerland ;)
Cyril
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]