ivo - 2014-12-17

I am wondering whether someone has already done the following, or whether someone could point me to good examples for this.

very early on in a linux (arch) boot (say from sda syslinux partition sda1), I would like to test whether a squashfs filesystem exists, say, on another disk (e.g. /mnt/sdb1/mysquashfs.sqsh, or /mnt/cdrom/mysquashfs.sqsh); and if it does, then transfer [continue] all booting from my squashfs instead. in fact, I want to unmount the original starting partition (/dev/sda1) immediately after squashfs starts booting. if it does not exist, I just want to continue booting from sda1.

pointers appreciated.

/iaw