Skip to content

Instantly share code, notes, and snippets.

View gertjanvanzwieten's full-sized avatar

Gertjan van Zwieten gertjanvanzwieten

  • Evalf Computing
  • The Netherlands
View GitHub Profile
@alexalouit
alexalouit / README
Last active September 19, 2022 07:17
run alpine linux as ramdisk/iso/usb with zfs modules (modloop)
$ mkdir /tmp/a
$ cd /tmp/a
$ unsquashfs /media/sd**/boot/modloop-lts
$ mv squashfs-root/ lib
$ tar -xzvf /etc/apk/cache/zfs-lts-*.apk
$ depmod -b /tmp/a
$ mksquashfs lib/ modloop-lts -noappend -always-use-fragments
$ mount -o rw,remount /media/sd**
# do backup but not as /filename or /boot/filename, alpine will be use it)
$ mv /tmp/a/modloop-lts /media/sd**/boot/modloop-lts