summaryrefslogtreecommitdiff
path: root/packages/udev/files
diff options
context:
space:
mode:
Diffstat (limited to 'packages/udev/files')
-rw-r--r--packages/udev/files/mount.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/udev/files/mount.sh b/packages/udev/files/mount.sh
index 48c7844690..be8b3dfca9 100644
--- a/packages/udev/files/mount.sh
+++ b/packages/udev/files/mount.sh
@@ -50,6 +50,11 @@ if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ]; then
fi
# If the device isn't mounted at this point, it isn't configured in fstab
+ # 20061107: Small correction: The rootfs partition may be called just "rootfs" and not by
+ # its true device name so this would break. If the rootfs is mounted on two places
+ # during boot, it confuses the heck out of fsck. So Im auto-adding the root-partition
+ # to /etc/udev/mount.blacklist via postinst
+
cat /proc/mounts | awk '{print $1}' | grep -q "^$DEVNAME$" || automount
fi