How about making this more generic:
rootfs=$(awk '{if ($5 == "/") print $8; }' /proc/self/mountinfo)
if [ "$rootfs" = "overlayfs" ]; then ... do the reload hack fi
?
« Back to merge proposal
How about making this more generic:
rootfs=$(awk '{if ($5 == "/") print $8; }' /proc/self/ mountinfo)
if [ "$rootfs" = "overlayfs" ]; then
... do the reload hack
fi
?