#!/usr/bin/sh if getargbool 0 systemd.volatile; then for device in $(lsblk -rno name); do device_path="/dev/$device" if [ -b "$device_path" ]; then blockdev --setro "$device_path" fi done fi