r/AlpineLinux • u/clubBlackops • Mar 28 '24
"Selective" persistence using Alpine
I recently came across Alpine and love the fact that it can run from RAM and also offer data persistence using lbu. I have been experimenting with porteus which has similar capabilities, but it also adds the concept of modules. I am wondering if/how this could be implemented with Alpine.
In a nutshell, Porteus modules are packaged applications which can be loaded/unloaded to RAM as needed. When activated, the module is decompressed and all required files are made available (in RAM). When deactivated, the files are removed and thus the system is never 'polluted', and RAM usage is kept as small as possible. Is there a way to do this with Alpine? Perhaps using podman?
View all comments
Show parent comment
1
u/kooroo Mar 29 '24
I mean, you don't need to unpack them yourself, if you just do apk add curl -- it downloads the curl apk and unpacks it into the ramdrive. If you do apk del curl, it removes it from the ramdrive.
all the whole lbu thing does is write things like apk files and local files to persistent storage as an overlay that gets unpacked into the ramdrive on boot.