diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2016-07-10 09:08:19 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2016-07-10 09:08:19 +0000 |
commit | 8f5d0b58f3cffa5014ff718b596342847717448c (patch) | |
tree | 88a5f947f60412da02e2e252fb6a969398763032 /etc/rc | |
parent | f6ddaf8a22a6cacf6cf0ac190a7e330a521622ba (diff) |
Fix detection of /usr/lib on NFS.
Found by Frank Scheiner, thanks for reporting this.
OK krw, halex
'cool' deraadt
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.485 2016/05/29 15:36:06 rpe Exp $ +# $OpenBSD: rc,v 1.486 2016/07/10 09:08:18 rpe Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the @@ -161,7 +161,7 @@ make_keys() { # Re-link libraries, placing the objects in a random order. reorder_libs() { local _l _liba _libas _tmpdir _remount=false _error=false - local _dkdev=/dev/$(stat -L -f '%Sd' /usr/lib) + local _dkdev=$(df /usr/lib | sed '1d;s/ .*//') local _mp=$(mount | grep "^$_dkdev") # Skip if /usr/lib is on a nfs mounted filesystem. |