Am 07.06.19 um 12:40 schrieb Lars-Erik Helander:
> Is it possible to configure boot to run alpine using a read-only mounted squashfs file?
Yes it is, supposing the Kernel and initramfs are not part of the
Take a look at  if the Kernel arguments work for you.
Otherwise you can modify the init script here:
- mount the fs where the squashfs lies
- mount the squashfs
- mount a tmpfs
- mount an overlayfs as the new root, lower dir would be squashfs,
upper dir is the tmpfs
The scipt is located at /usr/share/mkinitfs/initramfs-init
Important parts at this section is "nlplug-findfs" and "exec
/bin/busybox switch_root" to exit the initramfs into the bootet system.
(You can replace the code in lines 479-490 as present in the linked
Don't forget do add the squashfs and overlayfs Kernel modules into the
initramfs, then regenerate the initramfs.
You should also take a look into the Alpine Netboot which uses modloop
instead of squashfs.
> The mkinit code seems to include some squashfs support, but I can not figure if that could be used for my purpose.
> Skickat från min iPhone
> Unsubscribe: alpine-user+unsubscribe_at_lists.alpinelinux.org
> Help: alpine-user+help_at_lists.alpinelinux.org
Received on Fri Jun 07 2019 - 16:27:58 UTC