aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/fedora-readonly5
1 files changed, 3 insertions, 2 deletions
diff --git a/systemd/fedora-readonly b/systemd/fedora-readonly
index 190de26f..f33eef48 100755
--- a/systemd/fedora-readonly
+++ b/systemd/fedora-readonly
@@ -42,7 +42,8 @@ MOUNTS=()
if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
add_mount() {
- MOUNTS=("${MOUNTS[@]}" "$1")
+ mnt=${1%/}
+ MOUNTS=("${MOUNTS[@]}" "$mnt")
}
cp_empty() {
@@ -109,7 +110,7 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
prefix=0
for mount_point in "${MOUNTS[@]}"; do
[[ $m = $mount_point ]] && continue
- if [[ $m =~ ^$mount_point.* ]] ; then
+ if [[ $m =~ ^$mount_point/.* ]] ; then
prefix=1
break
fi