summaryrefslogtreecommitdiff
path: root/packages/udev/files
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-11-07 12:02:31 +0000
committerMatthias Hentges <oe@hentges.net>2006-11-07 12:02:31 +0000
commit3b7d18f95dbaaca9faa1ffcc9a780431e7351902 (patch)
treee1c739a8399ba2e9f9b76ffbace59b2c58b63f79 /packages/udev/files
parentb2b8e8ebef369da9281fea67b2c0c7e57d48f6e4 (diff)
udev: Auto-add the rootfs partition to mount.blacklist via postinst to work around a bug in the auto-mounter * * Untested in .dev! * *
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