From edac495ca3e207767f5395e0937439fe3562c7be Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 6 Mar 2006 23:40:57 +0000 Subject: Pass --numeric-owner to tar to make shutdown with NIS users happy. (Portage version: 2.1_pre5-r4) --- sys-fs/udev/files/udev-stop.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys-fs/udev/files') diff --git a/sys-fs/udev/files/udev-stop.sh b/sys-fs/udev/files/udev-stop.sh index 7141bb76b415..d2eb5b150896 100755 --- a/sys-fs/udev/files/udev-stop.sh +++ b/sys-fs/udev/files/udev-stop.sh @@ -49,7 +49,9 @@ main() { fgrep -x -v -f "${devices_udev}" < "${devices_real}" > "${devices_totar}" # Now only tarball those not created by udev if we have any if [[ -s ${devices_totar} ]]; then - try tar --one-file-system -jcpf "${device_tarball}" -T "${devices_totar}" + # we dont want to descend into mounted filesystems (e.g. devpts) + # looking up username may involve NIS/network, and net may be down + try tar --one-file-system --numeric-owner -jcpf "${device_tarball}" -T "${devices_totar}" try mv -f "${device_tarball}" /lib/udev-state/devices.tar.bz2 else rm -f /lib/udev-state/devices.tar.bz2 -- cgit v1.2.3-65-gdbad