Skip to content

Instantly share code, notes, and snippets.

@SlothDpal
SlothDpal / Dockerfile
Last active November 15, 2026 05:24 — forked from sst311212/build_pico_fido2.sh
Description: Dockerfile for building pico-fido2 firmware (RP2350/RP2040) in multi-stage container. Outputs .uf2 via scratch image. Topics: docker, pico, rp2350, fido2, webauthn, raspberry-pi, firmware, dockerfile
#
# based on build_pico_fido2.sh
#
FROM ubuntu:24.04 AS builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
@SlothDpal
SlothDpal / OVERLAYFS
Created April 21, 2022 13:23 — forked from mutability/OVERLAYFS
readonly root via overlayfs
- install the two shellscripts into the appropriate places under /etc/initramfs-tools
- run update-initramfs
- put "overlay=yes" on the kernel command line
- reboot
With the overlay in place, the real root is mounted readonly on /ro.
Only the root fs is changed, other filesystems are mounted normally.
Remove "overlay=yes" (or change it to something other than yes) and reboot to go back to readwrite.
(This probably means that you want the commandline config to live somewhere other than on the root fs, e.g. under /boot)