From 3b7d18f95dbaaca9faa1ffcc9a780431e7351902 Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Tue, 7 Nov 2006 12:02:31 +0000 Subject: udev: Auto-add the rootfs partition to mount.blacklist via postinst to work around a bug in the auto-mounter * * Untested in .dev! * * --- packages/udev/files/mount.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/udev/files/mount.sh') 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 -- cgit v1.2.3