Also add a FAQ entry about safety that links to it.
:thumbsup:
nit: device=$(awk '/\/run\/initramfs\/live { sub(/[0-9]*$/, "", $1); print $1 }' /proc/mounts) should be equivalent and (maybe) a bit simpler
device=$(awk '/\/run\/initramfs\/live { sub(/[0-9]*$/, "", $1); print $1 }' /proc/mounts)
device=$(awk '/\/run\/initramfs\/live/ { sub(/[0-9]*$/, "", $1); print $1 }' /proc/mounts) device=$(grep /run/initramfs/live /proc/mounts | awk '{ print $1 }' | sed 's/[0-9]*$//')
It's a tiny bit longer and honestly quite a bit more incomprehensible to me, but I don't know awk 😅
rebased onto a2770e198d49bff8a3f4163c1f810d116a2ad3c8
Pull-Request has been merged by marcan
Also add a FAQ entry about safety that links to it.