Received: from sonic310-13.consmr.mail.bf2.yahoo.com (sonic310-13.consmr.mail.bf2.yahoo.com [74.6.135.123]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 1D33E78079C for <~alpine/users@lists.alpinelinux.org>; Mon, 30 May 2022 13:46:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653918387; bh=3KoygZdZoXRgtR2WhdpJslw1fYk68cikf2ie1jIFNJc=; h=From:Date:Subject:To:References:From:Subject:Reply-To; b=WVsxh05wPi78U8xcSAi6M2Q8YSnxT+kkbLqWtjGPnd+5XfPkGODIt0Ah26R50mVb5kD1uSh2dezmWK8mfO75bR3kzByQWlOFH1gRC6FQbzL5UnNQwlN4h8Xpuy/hrO0ABV3bgFHb9+xjMM7maRCHUTSLlCO8mtSW/X/p76V9FpItLM2p5rBq8oXsG22jZq1up6k/4ho6hC3qs4K48y4OZ48jj21MPdF56v5nnwsiIaI//jH9NV7vrgZjKMYFxkX66lewsqpUHFYm+bKY/d+FR4s0cD7xRAxpwA01xo/Q9OAWhlGGkZfDO7WKMHAVmxFfvmEuFbIQ1vwC/Y4il8Czkw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653918387; bh=UsNAT3Tf+99Z1MT0h+gC9KnZ6cUMEfp5lzXSowYvApS=; h=X-Sonic-MF:From:Date:Subject:To:From:Subject; b=dCrk69JV3cTLRz1AvZz7MKYltK8RXZmNKkWJ7COkeFaNdOoNWVU2mBKkA/Dhpob5iNZ6JfB4Xy2OcReeMFDEMxxUuO/L1AGM4G6sjVT2cgT2c1JnKpO0je8QWd23DYaXgM0UVHXiTOOc+mFy1EGUC66l40SawuKPdOtfgpzJ8YE9LSkcL95k05acsu13Px4F3rbuEBnxDHUvmBfNUo2qw4h8F5t1ttBRWruKA1p8hQj4vzvqT/NCLApuvoE/wQHlxtt9kazxe569T9VoUqAPtxAIL9leFJ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sG.FuVM4x1K9S3ARG2kEKGwNpJEWJ oM0RHMBLBGWGdMMs7.gW8RHcmgl9xv4hSKe5rJmnaM6jvGXvRt7gXt2sPFQKAd1xmQIQ3Btbfc5m 4B0OJlSetcLN1.G43qtPBX5a.d5ZgRhgdQJ13HHsbosDwp92N8pt0h.YzQ8ghMyCLiTGHA2_aSpD TXDDqARyId6EP896L98h1vQCUFf0Et8BQHmYRwcvJ1L7ZdWpBXDfBvw-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Mon, 30 May 2022 13:46:27 +0000 Received: by hermes--canary-production-bf1-856dbf94db-l9ct9 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 6de29ff0930f21b95f2c513047aae5d5; Mon, 30 May 2022 13:46:26 +0000 (UTC) Received: by mail-yb1-f172.google.com with SMTP id v22so551175ybd.5 for <~alpine/users@lists.alpinelinux.org>; Mon, 30 May 2022 06:46:26 -0700 (PDT) X-Gm-Message-State: AOAM530ZUMcQLmdcA16IHK1BSYLK+LNAsYKe96Sq9V4szih2lFS3PKoy rmtMLi77p6xvC8jd4cBtxNYuXhNttSNI6jiLKA== X-Google-Smtp-Source: ABdhPJx7qAHZmfjvqiO5NGr50m86EIhrJtuiOcOEzDraFqeOYTVgWGrmmeoPOeUPj2FpWAJRz8Zv2jtvWkMLjjDpHEc= X-Received: by 2002:a25:7307:0:b0:65c:b98a:f592 with SMTP id o7-20020a257307000000b0065cb98af592mr7883546ybc.380.1653918385783; Mon, 30 May 2022 06:46:25 -0700 (PDT) MIME-Version: 1.0 From: Jerome Marc Date: Mon, 30 May 2022 15:46:15 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: hybrid setup idea To: ~alpine/users@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="000000000000df4d7405e03ae17f" References: X-Mailer: WebService/1.1.20225 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo --000000000000df4d7405e03ae17f Content-Type: text/plain; charset="UTF-8" Hi all, I'm running a diskless setup on a Raspberry PI. Problem is I am missing memory because my SBC only has 512Mb sdram. This is more than enough to run tiny things like nginx but I just tried to install docker. About 200mb software installed, my root filesystem is almost full. I really like the diskless approach but I miss the system install for the storage and memory capabilities. So I wonder why can't we have both ? I have seen numerous examples of mixing ext4 root fs with tmpfs mounts in order to keep the root fs read-only. That's interesting but very customized, not generic. I had another idea that would leverage overlays. I could use a lower layer stored in the sd card and an upper layer stored in tmpfs. The lower layer could be read-only and filesystem write operations would be applied to tmpfs only. The question is how to maintain such a system ? Would be perfect if apk could upgrade the lower layer. overlayfs doesn't support the lower layer updates unfortunately. I was thinking about this logic : remount rw the lower layer fs -> chroot using the lower layer as root -> run apk -> exit chroot -> remount ro the lower layer fs -> remount the overlay fs I think it would be fairly easy to write a wrapper (apk-persist) to automate everything. btw I have seen an overlays folder in the boot partition of Alpine. What is the purpose of this ? Thank you --000000000000df4d7405e03ae17f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I'm running a diskless setu= p on a Raspberry PI. Problem is I am missing memory because my SBC only has= 512Mb sdram.
This is more than enough to run tiny things like ng= inx but I just tried to install docker. About 200mb software installed, my = root filesystem is almost full.
I really like the diskless approa= ch but I miss the system install for the storage and memory capabilities.

So I wonder why can't we have both ? I have see= n numerous=C2=A0examples of mixing ext4 root fs with tmpfs mounts in order = to keep the root fs read-only.
That's interesting but very cu= stomized, not generic.

I had another idea that wou= ld leverage overlays. I could use a lower layer stored=C2=A0in the sd card = and an upper layer stored in tmpfs.
The lower layer could be read= -only and filesystem write operations would be applied to tmpfs only.
=

The question=C2=A0is how to maintain such a system ? Wo= uld be perfect if apk could upgrade the lower layer. overlayfs doesn't = support the lower layer updates unfortunately.
I was thinking abo= ut this logic :
remount rw the lower layer fs -> chroot using = the lower layer as root -> run apk -> exit chroot ->=C2=A0 remount= ro the lower layer fs -> remount the overlay fs

I think it would be fairly easy to write a wrapper (apk-persist) to autom= ate everything.

btw I have seen an overlays folder= in the boot partition of Alpine. What is the purpose of this ?
<= br>
Thank you
--000000000000df4d7405e03ae17f--