简体   繁体   中英

using squashfs image file as rootfs

I'm working on a system where I wish to use a squashfs image as the root file system. What I would like to do is have a kernel image and a squashfs image file in an ext4 partition to facilitate upgrading with RAUC.

Is it possible to get the kernel image to mount a squashfs image and use that for the rootfs? If so can someone please point me to some instructions for how to do this?

Thanks in advance

Adrew

You probably need to create your own initramfs that mount the ext4 partition, find the squashfs image and mount it in /mnt/image , then use switch_root provided by busybox to switch to using /mnt/image as / .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM