summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-04-20 10:57:37 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-04-20 10:58:16 +0200
commit12aab9286219400de76c73ae6a33eb4495253b20 (patch)
treea44762049078d7424ac495868226f7a4e98273fa /generic
parent2e911e59df85a57101039832340d1e4b4192b647 (diff)
downloadptxdist-12aab9286219400de76c73ae6a33eb4495253b20.tar.gz
ptxdist-12aab9286219400de76c73ae6a33eb4495253b20.tar.xz
[prelink] add option to skip prelinking on nfsroot
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'generic')
-rw-r--r--generic/etc/rc.once.d/prelink9
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/etc/rc.once.d/prelink b/generic/etc/rc.once.d/prelink
index 6c7c97bbc..52682a55f 100644
--- a/generic/etc/rc.once.d/prelink
+++ b/generic/etc/rc.once.d/prelink
@@ -1,6 +1,13 @@
#!/bin/sh
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+SKIP_ON_NFSROOT=@NFSSKIP@
+
+if [ "$SKIP_ON_NFSROOT" = "yes" ]; then
+ if cat /proc/cmdline | grep -q 'root=/dev/nfs'; then
+ echo "Skipping prelink on nfsroot"
+ exit 0
+ fi
+fi
echo "running prelink..."