mirror of
https://codeberg.org/andersonarc/reliant-system.git
synced 2025-11-13 12:50:38 -05:00
9 lines
235 B
Bash
Executable file
9 lines
235 B
Bash
Executable file
#!/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
|