Skip to content

Instantly share code, notes, and snippets.

@ferdinandkeil
ferdinandkeil / hook-functions
Created January 15, 2017 14:05
/usr/share/initramfs-tools/hook-functions for read-only fs on Raspbian
# -*- shell-script -*-
catenate_cpiogz() {
# Sanity check
if [ ! -e "${1}" ]; then
echo "W: catenate_cpiogz: arg1='${1}' does not exist." >&2
return
fi
cat "${1}" >>"${__TMPCPIOGZ}"
@ferdinandkeil
ferdinandkeil / config.txt
Created January 15, 2017 14:22
/boot/config.txt for read-only fs on Raspbian
# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
@ferdinandkeil
ferdinandkeil / overlay
Created January 15, 2017 14:10
/usr/share/initramfs-tools/scripts/overlay for read-only fs on Raspbian
# Local filesystem mounting -*- shell-script -*-
local_top()
{
if [ "${local_top_used}" != "yes" ]; then
[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-top"
run_scripts /scripts/local-top
[ "$quiet" != "y" ] && log_end_msg
fi
local_top_used=yes