summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-03-06 23:40:57 +0000
committerMike Frysinger <vapier@gentoo.org>2006-03-06 23:40:57 +0000
commitedac495ca3e207767f5395e0937439fe3562c7be (patch)
treeb38d8ff6f7430b4d298822e1f498c67112690738 /sys-fs/udev/files
parentupdate avr stuff (diff)
downloadgentoo-2-edac495ca3e207767f5395e0937439fe3562c7be.tar.gz
gentoo-2-edac495ca3e207767f5395e0937439fe3562c7be.tar.bz2
gentoo-2-edac495ca3e207767f5395e0937439fe3562c7be.zip
Pass --numeric-owner to tar to make shutdown with NIS users happy.
(Portage version: 2.1_pre5-r4)
Diffstat (limited to 'sys-fs/udev/files')
-rwxr-xr-xsys-fs/udev/files/udev-stop.sh4
1 files changed, 3 insertions, 1 deletions
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