Jump to content

milanp

Members
  • Posts

    3
  • Joined

  • Last visited

  1. @robertoj and @going Many thanks for the replies. Yesterday I managed to mount squashfs in initramfs, mount the persistent partition in initramfs + to create overlay for the squashfs. I could not create overlay in intitramfs until I installed overlayroot. @robertoj, I saw that option yesterday,I did not have time to play with it. Let's see how this works.
  2. I intend to use opipc's as appliances,with a simple cordova application which is started upon boot. The app uses web services to communicate with the backend, very small database locally. I had very positive experience with openelec/librelec kodi distributions where all the os+app were in squashfs. During more than 5-6 years of usage, I never had corrupted filesystem on those systems. Because of ro access to the squashfs, there's less posibility of corruption of rootfs. I tested several times to cut of power on the opipcplus, and managed to corrupt the system, so it will not boot. With squashfs, the rootfs should be more resilient. The data corruption of the local db is handled by the cordova app. Meanwhile I think I found a solution, I should put a script to mount the squashfs in the initrd scripts folder(unpack,recreate initrd with my script inside). All the tmp,proc... folders should be mounted on persistent storage (I intend to use ext4, on a separate partition). The /usr/bin+/usr/sbin folder should contain all the needed libraries + executables. It seems that the script should go in scripts/init-bottom. This is what I researched today, by learning about the boot chain of linux. Unfortunatelly, I will be away in the next days, with no time to try.
  3. Hello, I have a fully working customized Armbian on OrangePi PC Plus. There are two partitions, one for the rootfs, second mounted as /home I want to convert the root partition to squashfs, and use the squashfs file to boot from. I already converted the root partition to squashfs file, I can mount squashfs file, and the contents are correct. I even tried to mount it via fstab and it works. I searched everywhere, obviosly not enough, but I cannot find a way to boot directly from the squashfs file. The idea is to have only squashfs file and rw partition for /home Please, can somebody help me, or point me to the right instructions ?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines