1

I need to do remote updates on an embedded Linux box that has its rootfs on /dev/sda1.

My first thought was to add an update partition and switch to it on update, but for reasons specific to our solution, I'm restricted to booting only /dev/sda1.

Then I thought I could include a squashfs rootfs file and switch to mounting that, which would let me update /dev/sda1. The squashfs file needs to live on /dev/sda1.

So far I haven't figured out how to mount the squashfs file as my root filesystem. I've tried doing it manually to test:

mkdir /tmp/sda1
mount /dev/sda1 /tmp/sda1
mount -t squashfs /tmp/sda1/rootfs.sqsh /

which, not surprisingly, results in a mount failure (32).

And if that wasn't enough, I'm not able to do chroot in my system.

Any ideas?

0 Answers0