From 57ca51b307b4fe521f127a6607b504adf39d2daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 12 Mar 2018 13:48:01 +0100 Subject: [PATCH] Remove "none" test to be able to manage bind mounts This impact /var/tmp bind mount. If a device don't have a mount path (none), the `grep` in /etc/mtab will ignore this device. --- remountdefault | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remountdefault b/remountdefault index 66263a0..811811a 100755 --- a/remountdefault +++ b/remountdefault @@ -4,7 +4,7 @@ if [ "$(id -u)" -eq 0 ]; then # get the mountpath list from fstab - for mountpath in $(grep -v -E "(^#|none)" /etc/fstab | awk '{print $2}'); do + for mountpath in $(grep -v -E "(^#)" /etc/fstab | awk '{print $2}'); do # ensure "${mountpath}" is already mounted if grep -q " ${mountpath} " /etc/mtab; then mount "${mountpath}" -o remount