forked from pool/systemd
714ab2a3f6
1 OBS-URL: https://build.opensuse.org/request/show/241067 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=192
16 lines
431 B
Bash
16 lines
431 B
Bash
#!/bin/sh
|
|
|
|
PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
|
DIR=$(sed -rn '/^#/d;\@^[[:graph:]]+[[:space:]]+/[[:graph:]]+[[:space:]]+tmpfs[[:space:]]+.*size=[0-9]+[kmg,[:space:]]@{ s@^[[:graph:]]+[[:space:]]+(/[[:graph:]]+).*@\1@p }' /etc/fstab)
|
|
|
|
if [ -n "$DIR" ]; then
|
|
for i in $DIR; do
|
|
echo $i
|
|
mount -o remount "$i" >/dev/null 2>&1
|
|
STATE=$?
|
|
if [ "$STATE" -gt 0 ]; then
|
|
logger "Remount of $i failed with state $STATE"
|
|
fi
|
|
done
|
|
fi
|