diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-04-20 10:57:37 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-04-20 10:58:16 +0200 |
commit | 12aab9286219400de76c73ae6a33eb4495253b20 (patch) | |
tree | a44762049078d7424ac495868226f7a4e98273fa /generic | |
parent | 2e911e59df85a57101039832340d1e4b4192b647 (diff) | |
download | ptxdist-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/prelink | 9 |
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..." |