selivan/thinclient

Ability to use cache and swapfile on local disk or flashdrive, also local boot.

selivan opened this issue · 0 comments

Boot parameters and boot files(rootfs.squashfs, home.tar.gz ...) might be saved on local drive that has label=THINCLIENT.

On boot:

  • if server is not available - cached parameters and files are used
  • if server is available:
    • check if files on server has never version
    • download if it was
    • use them
  • if drive is not available: download files to RAM and use it

This keeps the system flexible but makes it more reliable. Also storing rootfs on drive saves available RAM.

Swapfile should be created if doesn't exist and used(with minimal vm.swappiness=1) if configured in boot parameters. For low-memory systems, along with zram.